From bb3e939ba74c729fda9729a4728cd77891da20c5 Mon Sep 17 00:00:00 2001 From: Maxim Shafirov Date: Mon, 29 Aug 2016 13:54:18 +0300 Subject: [PATCH 1/3] [Gradle Release Plugin] - new version commit: '0.1.10-SNAPSHOT'. --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index d698dcb..937cf2f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=0.1.9 +version=0.1.10-SNAPSHOT From 9b6a182066e2ddef2e8573c28552862939e01378 Mon Sep 17 00:00:00 2001 From: Maxim Shafirov Date: Mon, 29 Aug 2016 19:06:03 +0300 Subject: [PATCH 2/3] Don't crash on non-js dependencies --- src/main/groovy/KWP.groovy | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/groovy/KWP.groovy b/src/main/groovy/KWP.groovy index e415683..e2b7eb4 100644 --- a/src/main/groovy/KWP.groovy +++ b/src/main/groovy/KWP.groovy @@ -40,8 +40,10 @@ class KWP implements Plugin { writeSafely(new File(targetDir, "__modules.txt")) { buf -> dependencies.each {jar -> def m = unzipSafely(jar, targetDir) - def moduleName = m.name.substring(0, m.name.lastIndexOf('.')) - buf.append("${ moduleName}:${normalizedAbsolutePath(m)}\n") + if (m != null) { + def moduleName = m.name.substring(0, m.name.lastIndexOf('.')) + buf.append("${moduleName}:${normalizedAbsolutePath(m)}\n") + } } } @@ -89,9 +91,12 @@ class KWP implements Plugin { if (targets == 3) break } - timestampFile.text = "" + timestampFile.text = targetFile?.absolutePath ?: "notfound.js" timestampFile.setLastModified(jar.lastModified()) } + else { + targetFile = new File(timestampFile.text) + } return targetFile } From e6e52bccd9a4ca261a725dfeb0319c3dd4f11bf3 Mon Sep 17 00:00:00 2001 From: Maxim Shafirov Date: Mon, 29 Aug 2016 19:09:03 +0300 Subject: [PATCH 3/3] [Gradle Release Plugin] - pre tag commit: '0.1.10'. --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 937cf2f..0ec8cf6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=0.1.10-SNAPSHOT +version=0.1.10