From: Ben Soares Date: Mon, 7 Dec 2020 13:29:39 +0000 (+0000) Subject: JAL-3754 Fixed jar task creating strange dir because of outputs.file() X-Git-Tag: Develop-2_11_2_0-d20201215~12^2~8 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=6ce02c7c639d1b9ff32439d80d80082796b6613d;p=jalview.git JAL-3754 Fixed jar task creating strange dir because of outputs.file() --- diff --git a/build.gradle b/build.gradle index 1b55708..bc4e91b 100644 --- a/build.gradle +++ b/build.gradle @@ -1392,7 +1392,8 @@ jar { "Implementation-Version": JALVIEW_VERSION } - destinationDirectory = file("${jalviewDir}/${package_dir}") + def outputDir = "${jalviewDir}/${package_dir}" + destinationDirectory = file(outputDir) archiveFileName = rootProject.name+".jar" exclude "cache*/**" @@ -1405,7 +1406,7 @@ jar { sourceSets.main.resources.srcDirs.each{ dir -> inputs.dir(dir) } - outputs.file("${destinationDirectory}/${archiveFileName}") + outputs.file("${outputDir}/${archiveFileName}") }