Files
SpaiR 8a560ca439 [API] Fix dependency tree issue for imgui-java-app
resolve #75
resolve #127

Removed shadowing for `imgui-java-app.jar` which is published to Maven Central.
Shadow Jar now has a prefix `-all` - for those one who prefer to use raw jars instead dependencies in maven/gradle.
2022-12-14 12:01:50 +02:00

31 lines
542 B
Groovy

plugins {
id 'application'
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
application {
mainClass = 'Main'
try {
if (libPath) {
applicationDefaultJvmArgs = ["-Dimgui.library.path=$libPath"]
}
} catch (ignored) {
// ignore
}
}
dependencies {
implementation project(':imgui-app')
}
run {
if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) {
jvmArgs += ['-XstartOnFirstThread', '-Djava.awt.headless=true']
}
}