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.
31 lines
542 B
Groovy
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']
|
|
}
|
|
}
|