2019-11-02 17:23:48 +01:00
|
|
|
dependencies {
|
|
|
|
compile 'com.google.guava:guava:21.0'
|
|
|
|
compile 'com.google.code.gson:gson:2.8.0'
|
|
|
|
compile 'org.apache.commons:commons-lang3:3.5'
|
|
|
|
compile group: 'commons-io', name: 'commons-io', version: '2.6'
|
|
|
|
compile 'com.flowpowered:flow-math:1.0.3'
|
|
|
|
compile 'ninja.leaping.configurate:configurate-hocon:3.3'
|
|
|
|
compile 'ninja.leaping.configurate:configurate-gson:3.3'
|
|
|
|
compile 'com.github.Querz:NBT:4.0'
|
|
|
|
}
|
|
|
|
|
|
|
|
task zipWebroot(type: Zip) {
|
|
|
|
from fileTree('src/main/webroot')
|
|
|
|
archiveName 'webroot.zip'
|
2019-12-29 16:41:30 +01:00
|
|
|
destinationDir(file('src/main/resources/'))
|
2019-11-02 17:23:48 +01:00
|
|
|
outputs.upToDateWhen { false }
|
|
|
|
}
|
|
|
|
|
2019-12-29 16:23:43 +01:00
|
|
|
task zipResourceExtensions(type: Zip) {
|
|
|
|
from fileTree('src/main/resourceExtensions')
|
|
|
|
archiveName 'resourceExtensions.zip'
|
2019-12-29 16:41:30 +01:00
|
|
|
destinationDir(file('src/main/resources/'))
|
2019-12-29 16:23:43 +01:00
|
|
|
outputs.upToDateWhen { false }
|
|
|
|
}
|
|
|
|
|
2019-11-02 17:23:48 +01:00
|
|
|
//always update the zip before build
|
|
|
|
compileJava.dependsOn(zipWebroot)
|
2019-12-29 16:23:43 +01:00
|
|
|
compileJava.dependsOn(zipResourceExtensions)
|