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

51 lines
899 B
Plaintext
Raw Normal View History

plugins {
id("application")
id("org.openjfx.javafxplugin") version "0.0.10"
}
javafx {
2022-01-29 10:06:28 +01:00
version = "11.0.2"
modules(
"javafx.controls",
"javafx.fxml"
)
}
2022-01-29 10:06:28 +01:00
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
application {
2022-01-25 19:18:38 +01:00
mainClassName = "main.MainApplication"
}
2022-01-11 12:13:24 +01:00
repositories {
mavenCentral()
}
dependencies {
2022-01-11 12:13:24 +01:00
implementation("com.jfoenix:jfoenix:9.0.10")
implementation(project(":data"))
}
val jar by tasks.getting(Jar::class) {
manifest {
2022-01-25 19:18:38 +01:00
attributes["Main-Class"] = "main.Launcher"
}
from({
configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }
})
}
tasks.register("rebuild and move", Copy::class) {
group = "custom"
dependsOn("clean")
dependsOn("jar")
from("$buildDir/libs/app.jar")
mkdir("$buildDir/out/")
into("$buildDir/out/")
}