#31: fix class version of main source-set
This commit is contained in:
+3
-9
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user