diff --git a/build.gradle b/build.gradle index c8db95b..206aadc 100644 --- a/build.gradle +++ b/build.gradle @@ -22,6 +22,10 @@ java { withSourcesJar() withJavadocJar() + toolchain { + languageVersion = JavaLanguageVersion.of(17) + } + sourceCompatibility = JavaVersion.VERSION_16 targetCompatibility = JavaVersion.VERSION_16 } diff --git a/jitpack.yml b/jitpack.yml index 320011e..563b86e 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,6 +1,6 @@ -# Deploys the latest stable JDK available and sets it to default without having to manually specify it here, +# Deploys the latest stable JDK 17 available and sets it to default without having to manually specify it here, # Which includes using temurin as the distribution. before_install: - curl -s "https://get.sdkman.io" | bash - source ~/.sdkman/bin/sdkman-init.sh - - sdk install java + - sdk install java 17.0.10-tem \ No newline at end of file