mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-10 07:07:05 +07:00
9c18e18a9c
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
28 lines
714 B
Groovy
28 lines
714 B
Groovy
apply plugin: 'java'
|
|
|
|
import org.apache.tools.ant.taskdefs.condition.Os
|
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
|
|
project.ext.mainClassName = 'com.riiablo.server.bnls.BNLS'
|
|
|
|
task run(dependsOn: classes, type: JavaExec) {
|
|
main = project.mainClassName
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
standardInput = System.in
|
|
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)}}
|
|
|
|
manifest {
|
|
attributes 'Main-Class': project.mainClassName
|
|
}
|
|
}
|