riiablo/tools/build.gradle
Collin Smith 2ff13b8b8e Created tool scaffolding abstraction
Tools should extend BaseTool to provide interfaces
Tools can provide their own cli arguments and customizations
Tools main methods should execute their backend entry point
2020-11-24 02:51:02 -08:00

66 lines
2.0 KiB
Groovy

apply plugin: 'java'
project.ext.visuiVersion = '1.4.0'
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"
implementation "com.badlogicgames.box2dlights:box2dlights:$box2DLightsVersion"
}
subprojects {
apply plugin: 'java'
apply plugin: 'application'
sourceSets.main.resources.srcDirs += project(':tools').file('assets')
idea.module.resourceDirs += project(':tools').file('assets')
dependencies {
implementation project(':core')
implementation project(':tools')
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'
}
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)
}
}
}