JAL-3754 fixed a problem with jar task creating a stray dir when building
authorBen Soares <b.soares@dundee.ac.uk>
Fri, 4 Dec 2020 18:31:32 +0000 (18:31 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Fri, 4 Dec 2020 18:31:32 +0000 (18:31 +0000)
build.gradle

index d7382cb..07c9476 100644 (file)
@@ -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}")
 }