2019-12-02 18:12:44 +07:00
|
|
|
apply plugin: "java"
|
|
|
|
|
|
|
|
sourceCompatibility = 1.7
|
|
|
|
|
2020-11-16 14:49:18 +07:00
|
|
|
project.ext.mainClassName = "com.riiablo.server.bncs.Main"
|
2019-12-02 18:12:44 +07:00
|
|
|
|
|
|
|
task run(dependsOn: classes, type: JavaExec) {
|
|
|
|
main = project.mainClassName
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
standardInput = System.in
|
|
|
|
ignoreExitValue = true
|
|
|
|
}
|
|
|
|
|
|
|
|
task dist(type: Jar) {
|
2020-11-11 15:13:44 +07:00
|
|
|
from files(sourceSets.main.output.classesDirs)
|
2019-12-02 18:12:44 +07:00
|
|
|
from files(sourceSets.main.output.resourcesDir)
|
|
|
|
from {configurations.compile.collect {zipTree(it)}}
|
2020-11-16 14:49:18 +07:00
|
|
|
|
2019-12-02 18:12:44 +07:00
|
|
|
manifest {
|
|
|
|
attributes 'Server-Class': project.mainClassName
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dist.dependsOn classes
|