2019-01-14 16:54:17 +07:00
|
|
|
apply plugin: "java"
|
|
|
|
|
|
|
|
sourceCompatibility = 1.7
|
|
|
|
sourceSets.main.java.srcDirs = [ "src/" ]
|
2019-01-21 15:11:24 +07:00
|
|
|
sourceSets.test.java.srcDirs = [ "test/" ]
|
2019-01-14 16:54:17 +07:00
|
|
|
|
2019-11-30 13:04:17 +07:00
|
|
|
project.ext.mainClassName = "com.riiablo.server.bnls.BNLS"
|
2019-01-14 16:54:17 +07:00
|
|
|
project.ext.assetsDir = new File("../android/assets");
|
|
|
|
|
|
|
|
task run(dependsOn: classes, type: JavaExec) {
|
|
|
|
main = project.mainClassName
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
standardInput = System.in
|
|
|
|
workingDir = project.assetsDir
|
|
|
|
ignoreExitValue = true
|
|
|
|
}
|
|
|
|
|
|
|
|
task dist(type: Jar) {
|
2020-11-11 15:13:44 +07:00
|
|
|
from files(sourceSets.main.output.classesDirs)
|
2019-01-14 16:54:17 +07:00
|
|
|
from files(sourceSets.main.output.resourcesDir)
|
|
|
|
from {configurations.compile.collect {zipTree(it)}}
|
|
|
|
from files(project.assetsDir);
|
|
|
|
|
|
|
|
manifest {
|
|
|
|
attributes 'Server-Class': project.mainClassName
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dist.dependsOn classes
|