Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade GH Actions and gradle build to use Java 17 runtime #326

Merged
merged 3 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- name: Setup Graalvm
uses: graalvm/setup-graalvm@v1
with:
version: '22.0.0.2'
java-version: '11'
java-version: '17.0.8'
distribution: 'graalvm'
components: 'native-image'
native-image-musl: 'true'
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -94,8 +94,8 @@ jobs:
- name: Setup Graalvm
uses: graalvm/setup-graalvm@v1
with:
version: '22.0.0.2'
java-version: '11'
java-version: '17.0.8'
distribution: 'graalvm'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -154,8 +154,8 @@ jobs:
- name: Setup Graalvm
uses: graalvm/setup-graalvm@v1
with:
version: '22.0.0.2'
java-version: '11'
java-version: '17.0.8'
distribution: 'graalvm'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
- name: Setup Java for JReleaser
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17.0.8

- 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=22.0.0.2.r11-grl
java=17.0.8-graalce
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ graalvmNative {
buildArgs.add('-H:EnableURLProtocols=https,http')
buildArgs.add('-H:+ReportExceptionStackTraces')

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

}

test {
Expand Down
Loading