1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
Description: modifying the .build_properties file to account for Debian repackaging
Also ensuring build reproductibility as timestamps are used.
Author: Pierre Gruet <pgt@debian.org>
Forwarded: not-needed
Last-Update: 2021-07-28
--- a/build.gradle
+++ b/build.gradle
@@ -690,21 +690,13 @@
outputs.dir(outputDir)
}
-task createBuildProperties(type: WriteProperties) {
+//task createBuildProperties(type: WriteProperties) {
+task createBuildProperties(type: Exec) {
dependsOn copyResources
group = "build"
description = "Create the ${buildProperties} file"
- inputs.dir(sourceDir)
- inputs.dir(resourcesBuildDir)
- outputFile (buildProperties)
- // taking time specific comment out to allow better incremental builds
- comment "--Jalview Build Details--\n"+getDate("yyyy-MM-dd HH:mm:ss")
- //comment "--Jalview Build Details--\n"+getDate("yyyy-MM-dd")
- property "BUILD_DATE", getDate("HH:mm:ss dd MMMM yyyy")
- property "VERSION", JALVIEW_VERSION
- property "JAVA_COMPILE_VERSION", JAVA_INTEGER_VERSION
- outputs.file(outputFile)
+ commandLine 'sh', 'debian/write_build_properties_file.sh'
}
|