check if minecraft directory exists before copying artifact
@@ -160,6 +160,7 @@ task setGameDir() {
}
task copyJar(type: DefaultTask, dependsOn: [setGameDir]) {
+ if(file(project.ext.gameDir).exists()) {
final files = { directory, filter, closure ->
new File(directory).eachFileMatch(filter, closure)
}
@@ -178,6 +179,7 @@ task copyJar(type: DefaultTask, dependsOn: [setGameDir]) {
}
}
}
+}
if (!isJenkinsBuilding) {
// run this task after build
