Skip to content

Commit

Permalink
Update manifest and run gradle tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
sghpjuikit committed Dec 7, 2024
1 parent d20cbb4 commit d89c4b2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions gradle/project.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,6 @@ dependencies {
implementation(project(":util"))
}

javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(20)
vendor = ADOPTIUM
}


tasks {

val copyLibs by creating(Sync::class) {
Expand Down Expand Up @@ -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")
}

Expand All @@ -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",
Expand All @@ -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"
)
}

0 comments on commit d89c4b2

Please sign in to comment.