#31: fix class version of main source-set

This commit is contained in:
2025-02-07 23:31:53 +01:00
parent 655a3b119d
commit 9b65a0365f
+3 -9
View File
@@ -12,7 +12,7 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8
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
tasks.named<JavaCompile>("compileVelocityJava") {
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
sourceCompatibility = "17"
targetCompatibility = "17"
}
repositories {