NoIssue: Fix for build, run and publish

This commit is contained in:
2026-02-01 19:17:45 +01:00
parent ff92f6c868
commit 5d179979f3
7 changed files with 16 additions and 25 deletions

View File

@@ -46,7 +46,7 @@ java {
toolchain { languageVersion.set(JavaLanguageVersion.of(25)) }
}
tasks.withType<JavaCompile> {
tasks.withType<JavaCompile>().configureEach {
options.release.set(25)
options.compilerArgs.add("--enable-preview")
}
@@ -57,7 +57,7 @@ tasks.register<Sync>("prepareLibs") {
group = "distribution"
description = "Copies runtime deps to build/libs without deleting the app jar"
val jarTask = tasks.named<Jar>("jar")
val jarTask = tasks.named<Jar>("jar")
dependsOn(jarTask)
into(libsDir)