diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2032b5a..4576ebb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: - name: Set up JDK uses: actions/setup-java@v4 with: - java-version: '17' + java-version: '21' distribution: 'temurin' - name: Validate Gradle wrapper diff --git a/build.gradle.kts b/build.gradle.kts index 86ea326..f781829 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -29,7 +29,7 @@ application { kotlin { jvmToolchain { - (this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(17)) + (this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(21)) } } diff --git a/generate-executable.sh b/generate-executable.sh index df08780..dd6b0d5 100755 --- a/generate-executable.sh +++ b/generate-executable.sh @@ -10,7 +10,7 @@ echo "JAR file has been built! ✅" echo "Install GraalVM via SDKMAN!:" curl --silent "https://get.sdkman.io?rcupdate=false" | bash || echo 'SDKMAN! already installed' source "$HOME/.sdkman/bin/sdkman-init.sh" -GRAALVM_VERSION="22.3.1.r17-grl" +GRAALVM_VERSION="22-graalce" sdkman_auto_answer=true sdk install java $GRAALVM_VERSION > /dev/null || echo "GraalVM $GRAALVM_VERSION already installed." sdk use java $GRAALVM_VERSION