mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-04 23:38:28 +07:00
Changed to standard gradle src directory structure
Changed to standard gradle src directory structure Changed some working directories to work properly with gradle tasks Changed MPQViewer asset path to empty string
This commit is contained in:
@ -1,17 +1,13 @@
|
||||
apply plugin: "java"
|
||||
|
||||
sourceCompatibility = 1.7
|
||||
sourceSets.main.java.srcDirs = [ "src/" ]
|
||||
sourceSets.test.java.srcDirs = [ "test/" ]
|
||||
|
||||
project.ext.mainClassName = "com.riiablo.server.bncs.BNCS"
|
||||
project.ext.assetsDir = new File("../android/assets");
|
||||
project.ext.mainClassName = "com.riiablo.server.bncs.Main"
|
||||
|
||||
task run(dependsOn: classes, type: JavaExec) {
|
||||
main = project.mainClassName
|
||||
classpath = sourceSets.main.runtimeClasspath
|
||||
standardInput = System.in
|
||||
workingDir = project.assetsDir
|
||||
ignoreExitValue = true
|
||||
}
|
||||
|
||||
@ -19,8 +15,7 @@ task dist(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 'Server-Class': project.mainClassName
|
||||
}
|
||||
|
Reference in New Issue
Block a user