From d89c4b2adf9041c6edb99ab716079fe346f905f6 Mon Sep 17 00:00:00 2001 From: sghpjuikit Date: Sat, 7 Dec 2024 18:08:21 +0100 Subject: [PATCH] Update manifest and run gradle tasks --- gradle/project.gradle.kts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gradle/project.gradle.kts b/gradle/project.gradle.kts index bc1669e61..2429ed51d 100644 --- a/gradle/project.gradle.kts +++ b/gradle/project.gradle.kts @@ -216,12 +216,6 @@ dependencies { implementation(project(":util")) } -javaToolchains.compilerFor { - languageVersion = JavaLanguageVersion.of(20) - vendor = ADOPTIUM -} - - tasks { val copyLibs by creating(Sync::class) { @@ -272,11 +266,15 @@ tasks { group = "build" destinationDirectory = dirApp archiveFileName = "SpitPlayer.jar" + manifest { + attributes["Main-Class"] = "sp.it.pl.main.AppKt" + } } "run"(JavaExec::class) { dependsOn(jar) // the widgets need the jar on the classpath workingDir = dirApp + mainClass = "sp.it.pl.main.AppKt" args = listOf("--dev") } @@ -301,6 +299,7 @@ tasks { application { applicationName = "Spit Player" mainClass = "sp.it.pl.main.AppKt" + executableDir = "app" applicationDefaultJvmArgs = listOf( "-Dname=SpitPlayer", "-Dfile.encoding=UTF-8", @@ -311,6 +310,7 @@ application { "-XX:+UseStringDeduplication", "-XX:+UseCompressedOops", "-XX:+CompactStrings", // OpenJ9 only - *"player.jvmArgs".prjProp?.split(' ')?.toTypedArray().orEmpty() + *"player.jvmArgs".prjProp?.split(' ')?.toTypedArray().orEmpty(), + "--dev" ) } \ No newline at end of file