Skip to content

Commit

Permalink
build: Use Gradle java version release flag (#67)
Browse files Browse the repository at this point in the history
Using toolchain will not allow Github actions to override the version.
  • Loading branch information
matrei authored Oct 28, 2024
1 parent bfe9f34 commit 7a50d0a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ apply plugin: 'org.grails.grails-plugin'
apply plugin: 'org.grails.internal.grails-plugin-publish'
apply plugin: 'maven-publish'

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
vendor = JvmVendorSpec.BELLSOFT
}
tasks.withType(JavaCompile).configureEach {
options.release = 17
}

repositories {
Expand Down

0 comments on commit 7a50d0a

Please sign in to comment.