VPR-Frontend/hellofx/app/build.gradle.kts

42 lines
749 B
Plaintext
Raw Permalink Normal View History

plugins {
id("application")
id("org.openjfx.javafxplugin") version "0.0.10"
}
javafx {
version = "11"
modules(
"javafx.controls",
"javafx.fxml"
)
}
application {
mainClassName = "client.MainApplication"
}
dependencies {
implementation(project(":data"))
}
val jar by tasks.getting(Jar::class) {
manifest {
attributes["Main-Class"] = "client.Launcher"
}
from({
configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }
})
}
2021-11-15 13:17:43 +01:00
tasks.register("rebuild and move", Copy::class) {
group = "custom"
dependsOn("clean")
dependsOn("jar")
from("$buildDir/libs/app.jar")
2021-11-15 13:17:43 +01:00
mkdir("$buildDir/out/")
into("$buildDir/out/")
}