1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-12 03:00:30 +00:00

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

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) {