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 'ninja.leaping.configurate:configurate-yaml:3.3' compile 'com.github.Querz:NBT:4.0' testCompile 'junit:junit:4.12' } task zipWebroot(type: Zip) { from fileTree('src/main/webroot') archiveName 'webroot.zip' destinationDir(file('src/main/resources/')) outputs.upToDateWhen { false } } task zipResourceExtensions(type: Zip) { from fileTree('src/main/resourceExtensions') archiveName 'resourceExtensions.zip' destinationDir(file('src/main/resources/')) outputs.upToDateWhen { false } } //always update the zip before build compileJava.dependsOn(zipWebroot) compileJava.dependsOn(zipResourceExtensions)