JAL-3754 Fixed jar task creating strange dir because of outputs.file()
authorBen Soares <b.soares@dundee.ac.uk>
Mon, 7 Dec 2020 13:29:39 +0000 (13:29 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Mon, 7 Dec 2020 13:29:39 +0000 (13:29 +0000)
build.gradle

index c3e89e5..ed0182d 100644 (file)
@@ -1358,7 +1358,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*/**"
@@ -1371,7 +1372,7 @@ jar {
   sourceSets.main.resources.srcDirs.each{ dir ->
     inputs.dir(dir)
   }
-  outputs.file("${destinationDirectory}/${archiveFileName}")
+  outputs.file("${outputDir}/${archiveFileName}")
 }