Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
# under the License.
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.8/apache-maven-3.9.8-bin.zip
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.10/apache-maven-3.9.10-bin.zip
6 changes: 3 additions & 3 deletions .sdkmanrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
java=17.0.8-tem
gradle=8.8
maven=3.9.8
java=17.0.15-tem
gradle=8.14.2
maven=3.9.10
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,28 @@
This is sample code for [Testing Spring Boot Kafka Listener using Testcontainers](https://testcontainers.com/guides/testing-spring-boot-kafka-listener-using-testcontainers) guide.

## 1. Setup Environment

Make sure you have Java 8+ and a [compatible Docker environment](https://www.testcontainers.org/supported_docker_environment/) installed.
If you are going to use Maven build tool then make sure Java 17+ is installed.

For example:

```shell
$ java -version
openjdk version "17.0.4" 2022-07-19
OpenJDK Runtime Environment Temurin-17.0.4+8 (build 17.0.4+8)
OpenJDK 64-Bit Server VM Temurin-17.0.4+8 (build 17.0.4+8, mixed mode, sharing)
openjdk 17.0.15 2025-04-15 LTS
OpenJDK Runtime Environment (build 17.0.15+10-LTS)
OpenJDK 64-Bit Server VM (build 17.0.15+10-LTS, mixed mode, sharing)
$ docker version
...
Server: Docker Desktop 4.12.0 (85629)
Server: Docker Desktop 4.0.0 ()
Engine:
Version: 20.10.17
API version: 1.41 (minimum version 1.12)
Go version: go1.17.11
Version: 28.2.2
API version: 1.50 (minimum version 1.24)
Go version: go1.24.3
Git commit: 45873be
Built: Fri May 30 12:07:26 2025
OS/Arch: linux/amd64
Experimental: false
...
```

Expand Down
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.1'
id 'io.spring.dependency-management' version '1.1.5'
id 'com.diffplug.spotless' version "6.25.0"
id 'org.springframework.boot' version '3.5.1'
id 'io.spring.dependency-management' version '1.1.7'
id 'com.diffplug.spotless' version "7.0.4"
}

group = 'com.testcontainers'
Expand All @@ -19,7 +19,7 @@ repositories {
}

ext {
set('testcontainers.version', "1.19.8")
set('testcontainers.version', "1.21.1")
}

dependencies {
Expand Down Expand Up @@ -48,7 +48,7 @@ spotless {
java {
importOrder()
removeUnusedImports()
prettier(['prettier': '3.0.3', 'prettier-plugin-java': '2.3.0'])
prettier(['prettier': '3.5.3', 'prettier-plugin-java': '2.6.8'])
.config([
'parser': 'java',
'tabWidth': 2,
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
10 changes: 6 additions & 4 deletions gradlew
100755 → 100644

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

186 changes: 94 additions & 92 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified mvnw
100755 → 100644
Empty file.
Loading