2020-11-17 14:14:33 +07:00
|
|
|
apply plugin: 'java'
|
2019-04-18 16:15:02 +07:00
|
|
|
|
2020-11-27 07:32:26 +07:00
|
|
|
project.ext.visuiVersion = '1.4.2'
|
2020-11-17 14:14:33 +07:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation project(':core')
|
|
|
|
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
|
|
|
|
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
|
|
|
implementation "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
|
|
|
|
|
|
|
|
implementation "commons-cli:commons-cli:$cliVersion"
|
|
|
|
implementation "com.kotcrab.vis:vis-ui:$visuiVersion"
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
|
|
|
|
implementation "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
|
2020-11-21 06:44:52 +07:00
|
|
|
implementation "com.badlogicgames.box2dlights:box2dlights:$box2DLightsVersion"
|
2020-11-17 14:14:33 +07:00
|
|
|
}
|
2020-11-21 13:44:43 +07:00
|
|
|
|
|
|
|
subprojects {
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'application'
|
|
|
|
|
2020-11-27 07:32:26 +07:00
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
|
|
|
2020-11-21 13:44:43 +07:00
|
|
|
dependencies {
|
|
|
|
implementation project(':core')
|
2020-11-24 17:51:02 +07:00
|
|
|
implementation project(':tools')
|
2020-11-21 13:44:43 +07:00
|
|
|
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
|
|
|
|
implementation "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
|
|
|
|
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
|
|
|
|
|
|
|
implementation "commons-cli:commons-cli:$cliVersion"
|
|
|
|
implementation "com.kotcrab.vis:vis-ui:$visuiVersion"
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
}
|
2020-11-24 15:25:16 +07:00
|
|
|
|
|
|
|
run {
|
|
|
|
ignoreExitValue true
|
|
|
|
|
|
|
|
// Required to run LWJGL3 java apps on MacOS
|
|
|
|
if (org.gradle.internal.os.OperatingSystem.current() == org.gradle.internal.os.OperatingSystem.MAC_OS) {
|
|
|
|
jvmArgs += "-XstartOnFirstThread"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
archiveBaseName = project.name
|
|
|
|
duplicatesStrategy DuplicatesStrategy.EXCLUDE
|
|
|
|
dependsOn configurations.runtimeClasspath
|
|
|
|
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
|
|
manifest {
|
|
|
|
attributes 'Main-Class': application.mainClass
|
|
|
|
}
|
|
|
|
|
|
|
|
doLast {
|
|
|
|
file(archiveFile).setExecutable(true, false)
|
|
|
|
}
|
|
|
|
}
|
2020-11-21 13:44:43 +07:00
|
|
|
}
|