riiablo/ds1viewer/build.gradle
Collin Smith 9c18e18a9c Reorganized gradle scripts into subproject directories
Reorganized gradle scripts into subproject directories
Reformatted gradle scripts to be more consistent
Created :server subproject group
Deleted :mpqlib subproject due to inactivity
Hopefully this is a step in the right direction
2020-11-16 23:14:33 -08:00

41 lines
1.2 KiB
Groovy

apply plugin: 'java'
import org.apache.tools.ant.taskdefs.condition.Os
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
project.ext.mainClassName = 'com.riiablo.map.DS1Viewer'
project.ext.assetsDir = new File('../android/assets');
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 "commons-cli:commons-cli:$cliVersion"
implementation "com.kotcrab.vis:vis-ui:$visuiVersion"
}
task run(dependsOn: classes, type: JavaExec) {
main = project.mainClassName
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
workingDir = project.assetsDir
ignoreExitValue = true
if(Os.isFamily(Os.FAMILY_MAC))
jvmArgs += "-XstartOnFirstThread"
}
task dist(dependsOn: classes, type: Jar) {
from files(sourceSets.main.output.classesDirs)
from files(sourceSets.main.output.resourcesDir)
from { configurations.compile.collect { zipTree(it) } }
from files(project.assetsDir);
manifest {
attributes 'Main-Class': project.mainClassName
}
}