[Example] Migrate example to the new module

This commit is contained in:
SpaiR committed 2021-01-24 22:20:37 +02:00
1 parent 46f74381aa
commit cf9e74b1d0
17 files changed
+489 -822

No files matched your search

+14 -1
View File
@@ -1,12 +1,25 @@
plugins {
id 'application'
id 'checkstyle'
}
repositories {
mavenCentral()
}
application {
mainClass = 'Main'
}
dependencies {
implementation project(':imgui-app')
}
task start(type: JavaExec, dependsOn: build) {
main = 'Main'
classpath = sourceSets.test.runtimeClasspath
jvmArgs = ["-Dimgui.library.path=${System.getProperty('libPath', '../bin')}"]
if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) {
jvmArgs += ['-XstartOnFirstThread', '-Djava.awt.headless=true']
}
}