Merge pull request #32 from oskar3123/31-main-builds-as-java-17

Fix main source-set class versions
This commit is contained in:
2025-02-07 23:35:54 +01:00
committed by GitHub
+3 -9
View File
@@ -12,7 +12,7 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8
toolchain { toolchain {
languageVersion.set(JavaLanguageVersion.of(8)) languageVersion.set(JavaLanguageVersion.of(17))
} }
} }
@@ -29,14 +29,8 @@ sourceSets {
// Configure the automatically created Velocity compilation task to use Java 17 // Configure the automatically created Velocity compilation task to use Java 17
tasks.named<JavaCompile>("compileVelocityJava") { tasks.named<JavaCompile>("compileVelocityJava") {
java { sourceCompatibility = "17"
sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = "17"
targetCompatibility = JavaVersion.VERSION_17
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
} }
repositories { repositories {