Skip to content

Commit

Permalink
Gradle Build: Configure Java toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Jul 20, 2023
1 parent 779befd commit 9876a23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ subprojects { project ->
apply plugin: "org.gradle.test-retry"

java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
withJavadocJar()
withSourcesJar()
}
Expand Down Expand Up @@ -268,9 +271,6 @@ subprojects { project ->

if (project.name in ['grails-bom', 'grails-dependencies']) return

sourceCompatibility = 11
targetCompatibility = 11

jar {
manifest.mainAttributes(
"Built-By": System.properties['user.name'],
Expand Down

0 comments on commit 9876a23

Please sign in to comment.