-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
38 lines (30 loc) · 923 Bytes
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
version = "0.0.1"
plugins {
kotlin("jvm") version "1.3.60"
id("org.openjfx.javafxplugin") version "0.0.8"
id("org.beryx.jlink") version "2.17.0"
}
repositories {
jcenter() // or maven central
maven("https://oss.sonatype.org/content/repositories/snapshots") // this is the important one
}
dependencies {
implementation("no.tornado:tornadofx:2.0.0-SNAPSHOT")
}
val compileKotlin: KotlinCompile by tasks
val compileJava: JavaCompile by tasks
compileJava.destinationDir = compileKotlin.destinationDir
application {
mainClassName = "test.module/de.sampleTfx.Main"
}
javafx {
modules("javafx.controls", "javafx.fxml", "javafx.media", "javafx.web", "javafx.swing")
}
jlink {
launcher {
name = "hello"
}
addExtraDependencies("javafx")
imageZip.set(project.file("${project.buildDir}/image-zip/hello-image.zip"))
}