Velocity 3.3.0 wants JDK 17, not 11.

This commit is contained in:
Kichura 2024-01-19 23:57:54 +01:00 committed by GitHub
parent 2be372c19d
commit e7dedd9aba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,14 +29,14 @@ application {
java { java {
toolchain { toolchain {
languageVersion.set(JavaLanguageVersion.of(11)) languageVersion.set(JavaLanguageVersion.of(17))
vendor.set(JvmVendorSpec.ADOPTIUM) vendor.set(JvmVendorSpec.ADOPTIUM)
} }
withSourcesJar() withSourcesJar()
} }
val compileKotlin: KotlinCompile by tasks val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions.jvmTarget = "11" compileKotlin.kotlinOptions.jvmTarget = "17"
val gitVersion: groovy.lang.Closure<String> by extra val gitVersion: groovy.lang.Closure<String> by extra