aboutsummaryrefslogtreecommitdiff
path: root/dokka-fatjar/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'dokka-fatjar/build.gradle')
-rw-r--r--dokka-fatjar/build.gradle8
1 files changed, 6 insertions, 2 deletions
diff --git a/dokka-fatjar/build.gradle b/dokka-fatjar/build.gradle
index ad07e629..6f7d0d63 100644
--- a/dokka-fatjar/build.gradle
+++ b/dokka-fatjar/build.gradle
@@ -31,8 +31,12 @@ task proguard(type: ProGuardTask) {
outjars "build/libs/dokka-fatjar-${dokka_version}.out.jar"
}
proguard.doLast {
- new File("build/libs/dokka-fatjar-${dokka_version}.jar").renameTo("build/libs/dokka-fatjar-${dokka_version}.in.jar")
- new File("build/libs/dokka-fatjar-${dokka_version}.out.jar").renameTo("build/libs/dokka-fatjar-${dokka_version}.jar")
+ def inFile = new File("$projectDir/build/libs/dokka-fatjar-${dokka_version}.jar")
+ if (!inFile.exists()) {
+ throw new IOException("Could not find Proguard input file ${inFile.absolutePath}")
+ }
+ inFile.renameTo("$projectDir/build/libs/dokka-fatjar-${dokka_version}.in.jar")
+ new File("$projectDir/build/libs/dokka-fatjar-${dokka_version}.out.jar").renameTo(inFile)
}
jar {