2020-11-17 14:14:33 +07:00
|
|
|
apply plugin: 'java'
|
2020-11-20 03:01:03 +07:00
|
|
|
apply plugin: 'application'
|
2019-12-02 18:12:44 +07:00
|
|
|
|
2020-11-20 03:01:03 +07:00
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
2019-12-02 18:12:44 +07:00
|
|
|
|
2020-11-20 03:01:03 +07:00
|
|
|
application {
|
|
|
|
mainClass = 'com.riiablo.server.bncs.Main'
|
|
|
|
}
|
2019-12-02 18:12:44 +07:00
|
|
|
|
2020-11-20 03:01:03 +07:00
|
|
|
run {
|
|
|
|
setStandardInput(System.in)
|
|
|
|
setIgnoreExitValue(true)
|
2019-12-02 18:12:44 +07:00
|
|
|
}
|
|
|
|
|
2020-11-20 03:01:03 +07:00
|
|
|
jar {
|
|
|
|
archiveBaseName = project.name
|
|
|
|
// These can be excluded because they add to the jar size but libGDX 1.9.11 can't use them.
|
|
|
|
// If your libGDX version is 1.9.10 or earlier, or is 1.9.12-SNAPSHOT or later, you can leave
|
|
|
|
// the following line commented; if you use 1.9.11 exactly, or if you use 1.9.12-SNAPSHOT but
|
|
|
|
// don't need ARM Linux support, you can uncomment it safely.
|
|
|
|
// It's always safe to keep that line commented out; it only affects JAR size.
|
|
|
|
// exclude('linux/arm32/**', 'linux/arm64/**')
|
|
|
|
dependsOn configurations.runtimeClasspath
|
|
|
|
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
|
|
manifest {
|
|
|
|
attributes 'Main-Class': application.mainClass
|
|
|
|
}
|
2020-11-16 14:49:18 +07:00
|
|
|
|
2020-11-20 03:01:03 +07:00
|
|
|
doLast {
|
|
|
|
file(archivePath).setExecutable(true, false)
|
|
|
|
}
|
2019-12-02 18:12:44 +07:00
|
|
|
}
|