Skip to content

Commit

Permalink
change java version to 17
Browse files Browse the repository at this point in the history
  • Loading branch information
swampie authored and weronikasosnowskaseqera committed Jan 9, 2024
1 parent b1d7d4d commit b8af571
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ jobs:
- name: Setup Graalvm
uses: graalvm/setup-graalvm@v1
with:
version: '21.3.0'
java-version: '11'
components: 'native-image'
java-version: '17.0.8'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install native-image component
Expand Down Expand Up @@ -79,7 +78,7 @@ jobs:
- name: Setup Java for JReleaser
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17

- name: Version
id: version
Expand Down
2 changes: 1 addition & 1 deletion .sdkmanrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=21.3.1.r17-grl
java=17.0.8-graalce
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ group = 'io.seqera'

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

Expand Down Expand Up @@ -128,6 +128,10 @@ graalvmNative {
buildArgs.add('-H:IncludeResources=.*/TlsSettings.properties$')
buildArgs.add('-H:+StaticExecutableWithDynamicLibC')
buildArgs.add('-H:+PrintClassInitialization')

javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(17)
}
}
}
}
Expand Down

0 comments on commit b8af571

Please sign in to comment.