Inceptum/launcher-gtk/build.gradle.kts
JFronny e15ef8c485
All checks were successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
Use a "stable" java-gi version (0.3) and mention it in the README
2023-01-28 10:02:01 +01:00

32 lines
798 B
Plaintext

plugins {
id("inceptum.application")
id("com.github.johnrengelman.shadow")
id("jf.manifold")
}
application {
mainClass.set("io.gitlab.jfronny.inceptum.gtk.GtkMain")
}
repositories {
mavenLocal()
maven { url = uri("https://maven.frohnmeyer-wds.de/java-gi") }
}
dependencies {
val javaGiVersion: String by rootProject.extra
implementation("io.github.jwharm.javagi:gtk4:$javaGiVersion")
implementation("io.github.jwharm.javagi:glib:$javaGiVersion")
implementation(project(":launcher"))
}
tasks.compileJava {
options.compilerArgs.add("--enable-preview")
}
tasks.runShadow {
workingDir = rootProject.projectDir
environment("GTK_DEBUG", "interactive") // interactive:actions
jvmArgs("--enable-preview", "--enable-native-access=ALL-UNNAMED")
}