Skip to content

Commit

Permalink
fix: set java version used in the gradle test to 21. Change the image…
Browse files Browse the repository at this point in the history
… used in skaffold.yaml so that the ccompiled java application runs in java V21 environment instead of V11.
  • Loading branch information
alphanota committed Dec 23, 2024
1 parent f9c0386 commit ec6f069
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions examples/jib-sync/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ repositories {
mavenCentral()
}

sourceCompatibility = 17
targetCompatibility = 17
sourceCompatibility = 21
targetCompatibility = 21

dependencies {
implementation "org.springframework.boot:spring-boot-starter-web"
Expand All @@ -22,4 +22,4 @@ dependencies {
testImplementation "org.springframework.boot:spring-boot-starter-test"
}

jib.from.image = 'openjdk:17'
jib.from.image = 'openjdk:21'
2 changes: 1 addition & 1 deletion examples/jib-sync/skaffold-gradle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build:
type: gradle
args:
- -Psync
fromImage: gcr.io/distroless/java:debug
fromImage: gcr.io/distroless/java21-debian12:debug
sync:
auto: true

Expand Down
20 changes: 10 additions & 10 deletions integration/examples/jib-sync/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ plugins {
}

repositories {
mavenCentral()
mavenCentral()
}

sourceCompatibility = 17
targetCompatibility = 17
sourceCompatibility = 21
targetCompatibility = 21

dependencies {
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.springframework.boot:spring-boot-starter-actuator"
if (project.hasProperty('sync')) {
implementation "org.springframework.boot:spring-boot-devtools"
}
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.springframework.boot:spring-boot-starter-actuator"
if (project.hasProperty('sync')) {
implementation "org.springframework.boot:spring-boot-devtools"
}

testImplementation "org.springframework.boot:spring-boot-starter-test"
testImplementation "org.springframework.boot:spring-boot-starter-test"
}

jib.from.image = 'openjdk:17'
jib.from.image = 'openjdk:21'
2 changes: 1 addition & 1 deletion integration/examples/jib-sync/skaffold-gradle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build:
type: gradle
args:
- -Psync
fromImage: gcr.io/distroless/java:debug
fromImage: gcr.io/distroless/java21-debian12:debug
sync:
auto: true

Expand Down

0 comments on commit ec6f069

Please sign in to comment.