Skip to content

Commit

Permalink
rename : module name and upgrade to 3.4.0-M1
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Jul 21, 2024
1 parent 270a348 commit a5eea5f
Show file tree
Hide file tree
Showing 23 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: spring-boot-multiple-producers-consumers
name: boot-multiple-producers-consumers

on:
push:
paths:
- "kafka-spring-boot/spring-boot-multiple-producers-consumers/**"
- "kafka-spring-boot/boot-multiple-producers-consumers/**"
branches: [ main ]
pull_request:
paths:
- "kafka-spring-boot/spring-boot-multiple-producers-consumers/**"
- "kafka-spring-boot/boot-multiple-producers-consumers/**"
types:
- opened
- synchronize
Expand All @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: kafka-spring-boot/spring-boot-multiple-producers-consumers
working-directory: kafka-spring-boot/boot-multiple-producers-consumers

steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.2</version>
<version>3.4.0-M1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example.kafka</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
spring.application.name=multiple-producers-consumers
spring.application.name=boot-multiple-producers-consumers
logging.pattern.level= "%5p [${spring.application.name:},%X{traceId:-},%X{spanId:-}]"
logging.level.root=INFO
logging.level.org.springframework=INFO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.springframework.context.annotation.Bean;
import org.springframework.test.context.DynamicPropertyRegistry;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.KafkaContainer;
import org.testcontainers.kafka.KafkaContainer;
import org.testcontainers.utility.DockerImageName;

@TestConfiguration(proxyBeanMethods = false)
Expand All @@ -21,10 +21,8 @@ GenericContainer<?> zipkinContainer() {
@Bean
@ServiceConnection
KafkaContainer kafkaContainer(DynamicPropertyRegistry dynamicPropertyRegistry) {
KafkaContainer kafkaContainer = new KafkaContainer(
DockerImageName.parse("confluentinc/cp-kafka").withTag("7.6.2"))
.withKraft()
.withReuse(true);
KafkaContainer kafkaContainer =
new KafkaContainer(DockerImageName.parse("apache/kafka").withTag("3.7.1")).withReuse(true);
// Connect our Spring application to our Testcontainers Kafka instance
dynamicPropertyRegistry.add("spring.kafka.consumer.bootstrap-servers", kafkaContainer::getBootstrapServers);
dynamicPropertyRegistry.add("spring.kafka.producer.bootstrap-servers", kafkaContainer::getBootstrapServers);
Expand Down

0 comments on commit a5eea5f

Please sign in to comment.