From fccdf5a37b4072a539741db3e6b6b4d1dc2b947e Mon Sep 17 00:00:00 2001 From: reger24 <11603289+reger24@users.noreply.github.com> Date: Sat, 12 Feb 2022 13:15:15 +0100 Subject: [PATCH] Small optimization on gradle task prepYaCyProperties for better lifecycle detection --- build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 3a304b14f..95cdbab58 100644 --- a/build.gradle +++ b/build.gradle @@ -157,6 +157,7 @@ shadowJar.zip64 = true // saw build error: Execution failed for task ':shadowJar // read values from property file generated by storeGitComInf tool import org.apache.tools.ant.filters.ReplaceTokens task prepYaCyProperties (type: Copy) { + inputs.files(fileTree(sourceSets.main.java.srcDirs[0].name + "/net/yacy/peers/operation/yacyBuildProperties.java.template")) def propfile = "gitbuildnumber.properties"; if (project.file(propfile).exists()) { // must check otherwise any action may stop after clean on this error @@ -165,7 +166,7 @@ task prepYaCyProperties (type: Copy) { props.load(it) project.ext.filterTokens.putAll(props) } - } else { // on missing properties file use generic data + } else { // on missing properties file use generic data logger.error("prepYaCyProperties: file " + propfile + " is missing, you should re-run storeGitComInf") Properties props = new Properties() String Dstr = new Date().format("yyyyMMDD")