Skip to content

Commit

Permalink
Fix: jvm downgrad(21 -> 17)
Browse files Browse the repository at this point in the history
  • Loading branch information
currenjin committed Dec 6, 2024
1 parent 3f510df commit 7db8f6a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version = '0.0.1-SNAPSHOT'

java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
languageVersion = JavaLanguageVersion.of(17)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void detectMySQLFromGradle(@TempDir Path tempDir) throws Exception {
List<Service> services = detector.detect(tempDir);

assertThat(services).hasSize(1);
assertThat(services.getFirst())
assertThat(services.get(0))
.satisfies(mysql -> {
assertThat(mysql.getName()).isEqualTo("mysql");
assertThat(mysql.getVersion()).isEqualTo("8.0");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void detectPostgreSQLFromGradle(@TempDir Path tempDir) throws Exception {
List<Service> services = detector.detect(tempDir);

assertThat(services).hasSize(1);
assertThat(services.getFirst())
assertThat(services.get(0))
.satisfies(postgresql -> {
assertThat(postgresql.getName()).isEqualTo("postgresql");
assertThat(postgresql.getVersion()).isEqualTo("15.0");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void detectRabbitMQFromGradle(@TempDir Path tempDir) throws Exception {
List<Service> services = detector.detect(tempDir);

assertThat(services).hasSize(1);
assertThat(services.getFirst())
assertThat(services.get(0))
.satisfies(rabbitmq -> {
assertThat(rabbitmq.getName()).isEqualTo("rabbitmq");
assertThat(rabbitmq.getVersion()).isEqualTo("3.12");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void detectRedisFromGradle(@TempDir Path tempDir) throws Exception {
List<Service> services = detector.detect(tempDir);

assertThat(services).hasSize(1);
assertThat(services.getFirst())
assertThat(services.get(0))
.satisfies(redis -> {
assertThat(redis.getName()).isEqualTo("redis");
assertThat(redis.getVersion()).isEqualTo("7.0");
Expand Down

0 comments on commit 7db8f6a

Please sign in to comment.