(build) Migrate ssr to the new root setting schema of java lang version

This commit is contained in:
Viktor Lofgren 2024-04-25 15:08:56 +02:00
parent 6690e9bde8
commit 4e5f069809

View File

@ -7,13 +7,14 @@ plugins {
application { application {
mainClass = 'nu.marginalia.SingleService' mainClass = 'nu.marginalia.SingleService'
applicationName = 'marginalia' applicationName = 'marginalia'
applicationDefaultJvmArgs = [ "--enable-preview" ]
} }
tasks.distZip.enabled = false tasks.distZip.enabled = false
java { java {
toolchain { toolchain {
languageVersion.set(JavaLanguageVersion.of(22)) languageVersion.set(JavaLanguageVersion.of(rootProject.ext.jvmVersion))
} }
} }