Fix a build from a clean state failing

This commit is contained in:
SquidDev 2019-06-02 18:48:36 +01:00
parent 6b81bcf334
commit 3406ba3ebf
1 changed files with 1 additions and 0 deletions

View File

@ -199,6 +199,7 @@ task compressJson(dependsOn: extractAnnotationsJar) {
// Copy over all files in the current jar to the new one, running json files from GSON. As pretty printing
// is turned off, they should be minified.
new ZipFile(jarPath).withCloseable { inJar ->
tempPath.getParentFile().mkdirs()
new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(tempPath))).withCloseable { outJar ->
inJar.entries().each { entry ->
if(entry.directory) {