Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Jul 15, 2023
1 parent 8512afd commit 6d0b4e1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/boot-reactor-consumer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: boot-kafka-reactor-consumer

on:
push:
paths:
- "kafka-reactor/boot-kafka-reactor-consumer/**"
branches: [ master ]
pull_request:
paths:
- "kafka-reactor/boot-kafka-reactor-consumer/**"
types:
- opened
- synchronize
- reopened

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: "kafka-reactor/boot-kafka-reactor-consumer"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: '17'
distribution: 'adopt'
cache: 'maven'
- name: Build with Maven
run: ./mvnw -B verify --file pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ KafkaContainer kafkaContainer(DynamicPropertyRegistry propertyRegistry) {
KafkaContainer kafkaContainer = new KafkaContainer(
DockerImageName.parse("confluentinc/cp-kafka").withTag("7.4.1"))
.withKraft();
propertyRegistry.add("spring.kafka.producer.bootstrapServers", kafkaContainer::getBootstrapServers);
propertyRegistry.add("spring.kafka.consumer.bootstrapServers", kafkaContainer::getBootstrapServers);
propertyRegistry.add("spring.kafka.bootstrapServers", kafkaContainer::getBootstrapServers);
return kafkaContainer;
}

Expand Down

0 comments on commit 6d0b4e1

Please sign in to comment.