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:
Collin Smith
2020-11-15 23:49:18 -08:00
parent c0fe73ee90
commit 269f283c9b
796 changed files with 26 additions and 71 deletions

View File

@ -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
}