-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from miguelaferreira/upgrade-gradle-7.3.rc-5
Upgrade gradle to 7.3-rc-5 and Graalvm to 21.3.0-r17
- Loading branch information
Showing
11 changed files
with
242 additions
and
164 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,8 +51,8 @@ jobs: | |
- name: "Install GraalVM" | ||
uses: DeLaGuardo/[email protected] | ||
with: | ||
graalvm: '21.2.0' | ||
java: 'java16' | ||
graalvm: '21.3.0' | ||
java: 'java17' | ||
arch: 'amd64' | ||
|
||
- name: Autobuild | ||
|
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 |
---|---|---|
|
@@ -21,12 +21,12 @@ jobs: | |
path: | | ||
~/.gradle | ||
${GITHUB_WORKSPACE}/.gradle | ||
key: ${{ matrix.os }}-devex-release-java16-graal-21.2.0 | ||
key: ${{ matrix.os }}-devex-release-java16-graal-21.3.0-r17 | ||
- name: "[${{ runner.os }}] Install GraalVM" | ||
uses: DeLaGuardo/[email protected] | ||
with: | ||
graalvm: '21.2.0' | ||
java: 'java16' | ||
graalvm: '21.3.0' | ||
java: 'java17' | ||
arch: 'amd64' | ||
- name: "[${{ runner.os }}] Install native-image" | ||
run: gu install native-image | ||
|
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 |
---|---|---|
|
@@ -22,12 +22,12 @@ jobs: | |
~/.gradle | ||
${GITHUB_WORKSPACE}/.gradle | ||
~/.cache/pip/ | ||
key: ${{ runner.os }}-devex-development-java16-graal-21.2.0 | ||
key: ${{ runner.os }}-devex-development-java16-graal-21.3.0-r17 | ||
- name: "Install GraalVM" | ||
uses: DeLaGuardo/[email protected] | ||
with: | ||
graalvm: '21.2.0' | ||
java: 'java16' | ||
graalvm: '21.3.0' | ||
java: 'java17' | ||
arch: 'amd64' | ||
- name: "Install native-image" | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,13 @@ dependencies { | |
implementation("io.micronaut.picocli:micronaut-picocli") | ||
implementation("io.micronaut:micronaut-validation") | ||
|
||
// patch vulnerable jackson dependency | ||
constraints { | ||
implementation("com.fasterxml.jackson.core:jackson-databind:2.9.10.6") { | ||
because 'previous versions (com.fasterxml.jackson.core:[email protected]) has known vulnerabilities' | ||
} | ||
} | ||
|
||
|
||
implementation 'org.slf4j:slf4j-api:1.7.30' | ||
implementation 'ch.qos.logback:logback-classic:1.2.3' | ||
|
@@ -64,8 +71,8 @@ application { | |
|
||
java { | ||
modularity.inferModulePath.set(true) | ||
sourceCompatibility = JavaVersion.toVersion("16") | ||
targetCompatibility = JavaVersion.toVersion("16") | ||
sourceCompatibility = JavaVersion.toVersion("17") | ||
targetCompatibility = JavaVersion.toVersion("17") | ||
} | ||
|
||
test { | ||
|
@@ -88,6 +95,12 @@ test { | |
// } | ||
} | ||
|
||
// Workaround for using gradle 7.3 with java 17 | ||
// src: https://github.com/micronaut-projects/micronaut-gradle-plugin/issues/296 | ||
tasks.withType(Test).configureEach { | ||
useJUnitPlatform() | ||
} | ||
|
||
processResources { | ||
from("VERSION") | ||
} | ||
|
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,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-rc-5-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.