mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-10 07:07:05 +07:00
269f283c9b
Changed to standard gradle src directory structure Changed some working directories to work properly with gradle tasks Changed MPQViewer asset path to empty string
25 lines
585 B
Groovy
25 lines
585 B
Groovy
apply plugin: "java"
|
|
|
|
sourceCompatibility = 1.7
|
|
|
|
project.ext.mainClassName = "com.riiablo.server.bncs.Main"
|
|
|
|
task run(dependsOn: classes, type: JavaExec) {
|
|
main = project.mainClassName
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
standardInput = System.in
|
|
ignoreExitValue = true
|
|
}
|
|
|
|
task dist(type: Jar) {
|
|
from files(sourceSets.main.output.classesDirs)
|
|
from files(sourceSets.main.output.resourcesDir)
|
|
from {configurations.compile.collect {zipTree(it)}}
|
|
|
|
manifest {
|
|
attributes 'Server-Class': project.mainClassName
|
|
}
|
|
}
|
|
|
|
dist.dependsOn classes
|