From 38658dc7e1533e7c5e57594a7aebd5e6d872a849 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Wed, 21 Sep 2016 13:55:01 +0100 Subject: [PATCH] Fix build without libs folder --- build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index c0eb596ee5..fe135f7c4e 100644 --- a/build.gradle +++ b/build.gradle @@ -173,9 +173,13 @@ task buildTiny << { } logger.lifecycle(":compressing tiny mappings") + def libs = new File("build/libs/") + if(!libs.exists()){ + libs.mkdirs() + } def buffer = new byte[1024] - def outputFile = new File("build/libs/pomf-tiny-${pomfVersion}.gz") + def outputFile = new File(libs, "pomf-tiny-${pomfVersion}.gz") def fileOutputStream = new FileOutputStream(outputFile) def outputStream = new GZIPOutputStream(fileOutputStream) def inputFile = new File("mappings.tiny")