JAL-4482 make the dummy whatsNew.html file HTML with an #experimental named anchor bug/JAL-4482_gradle_task_linkCheck_fails
authorBen Soares <b.soares@dundee.ac.uk>
Mon, 11 Nov 2024 15:55:57 +0000 (15:55 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Mon, 11 Nov 2024 15:55:57 +0000 (15:55 +0000)
build.gradle

index 4a7c921..d466891 100644 (file)
@@ -1646,7 +1646,8 @@ task releasesTemplates {
         ]
       )
     } else if (gradle.taskGraph.hasTask(":linkCheck")) {
-      whatsnewHtmlFile.text = "Development build " + getDate("yyyy-MM-dd HH:mm:ss")
+      def dummyWhatsNewText = "<html><head></head><body>" + "<h1>Development build " + getDate("yyyy-MM-dd HH:mm:ss") + "</h1>\n<a name=\"experimental\">Experimental</a>" + "\n</body></html>"
+      whatsnewHtmlFile.text = dummyWhatsNewText
     }
 
   }