Skip to content

Commit

Permalink
build: change java toolchain definition
Browse files Browse the repository at this point in the history
  • Loading branch information
darksaid98 committed Feb 22, 2024
1 parent ec5c2aa commit ed12e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ description = ""
val mainPackage = "${project.group}.${rootProject.name.lowercase()}"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(JavaVersion.VERSION_17.majorVersion)) // Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example.
toolchain.languageVersion.set(JavaLanguageVersion.of(17)) // Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example.
// withJavadocJar() // NOTE: Use if you want to generate javadocs for your plugin
}

Expand Down

0 comments on commit ed12e78

Please sign in to comment.