JAL-4059 ensure order of transferring JS lib zip files to site is consistent
authorBen Soares <b.soares@dundee.ac.uk>
Tue, 31 Oct 2023 09:25:26 +0000 (09:25 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Tue, 31 Oct 2023 09:25:26 +0000 (09:25 +0000)
build.gradle

index 78e2466..ff9999c 100644 (file)
@@ -3408,7 +3408,7 @@ task jalviewjsTransferUnzipSwingJs {
 
 
 task jalviewjsTransferUnzipLib {
-  def zipFiles = fileTree(dir: "${jalviewDir}/${jalviewjs_libjs_dir}", include: "*.zip")
+  def zipFiles = fileTree(dir: "${jalviewDir}/${jalviewjs_libjs_dir}", include: "*.zip").sort()
 
   doLast {
     zipFiles.each { file_zip -> 
@@ -3423,13 +3423,17 @@ task jalviewjsTransferUnzipLib {
   outputs.dir "${jalviewDir}/${jalviewjsTransferSiteLibDir}"
 }
 
+jalviewjsTransferUnzipSwingJs.mustRunAfter jalviewjsTransferUnzipLib
+
 
 task jalviewjsTransferUnzipAllLibs {
-  dependsOn jalviewjsTransferUnzipSwingJs
   dependsOn jalviewjsTransferUnzipLib
+  dependsOn jalviewjsTransferUnzipSwingJs
 }
 
 
+
+
 task jalviewjsCreateJ2sSettings(type: WriteProperties) {
   group "JalviewJS"
   description "Create the alternative j2s file from the j2s.* properties"