-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: upgrade gradle to 8.11.1 and set java version used to 21. (#9623)
* fix: upgrade gradle spring boot and support openjdk versions * fix: upgrade gradle spring boot and support openjdk versions * #fix address PR comments, update all plugins to latest version * copy changes over to examples/jib-sync * fix: set source and target compability to 21 * set target jdk to 17 * fix: set java version used in the gradle test to 21. Change the image used in skaffold.yaml so that the ccompiled java application runs in java V21 environment instead of V11. * run only problematic test and add debug logging * add debug line * add vebosity flag * add debugging code * add debugging code * more debug lines * more debug lines * more debug lines * more debug lines * call gradle directly to get debug error * Run skaffold dev to see output * Run TestDevAutoSync. * remove XDG_CONFIG_HOM environment variable * remove XDG_CONFIG_HOM environment variable * run skaffold test * re-enable all tests and sync the two copies of build.gradle * update jib-gradle example * add databind dependency which is needed by netty * Sync changes in integration/examples/jib-gradle to examples/jib-gradle * remove jib.fromImage specification in build.gradle since the base image is defined in the skaffold.yaml * fix jib-gradle/skaffold.yaml, set apiVersion to v4beta11 * use setup-java action to set the java version
- Loading branch information
Showing
29 changed files
with
568 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
micronautVersion=3.7.4 | ||
micronautVersion=4.6.3 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
rootProject.name = 'micronaut-jib' | ||
plugins { | ||
id 'io.micronaut.platform.catalog' version '4.4.4' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
plugins { | ||
id 'java' | ||
id 'org.springframework.boot' version '2.0.5.RELEASE' | ||
id 'io.spring.dependency-management' version '1.0.7.RELEASE' | ||
id 'com.google.cloud.tools.jib' version '3.3.1' | ||
id 'org.springframework.boot' version '3.4.1' | ||
id 'io.spring.dependency-management' version '1.1.7' | ||
id 'com.google.cloud.tools.jib' version '3.4.4' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenCentral() | ||
} | ||
|
||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
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' |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.