From 89729f14cea967fc6992d8b1b3de2f3fa9bc6b3c Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Fri, 4 Dec 2020 18:31:32 +0000 Subject: [PATCH] JAL-3754 fixed a problem with jar task creating a stray dir when building --- build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index d7382cb..07c9476 100644 --- a/build.gradle +++ b/build.gradle @@ -1363,7 +1363,8 @@ jar { "Implementation-Version": JALVIEW_VERSION } - destinationDirectory = file("${jalviewDir}/${package_dir}") + def distDir = "${jalviewDir}/${package_dir}" + destinationDirectory = file(distDir) archiveFileName = rootProject.name+".jar" exclude "cache*/**" @@ -1376,7 +1377,7 @@ jar { sourceSets.main.resources.srcDirs.each{ dir -> inputs.dir(dir) } - outputs.file("${destinationDirectory}/${archiveFileName}") + outputs.file("${distDir}/${archiveFileName}") } -- 1.7.10.2