From 58f3e815556e15a7916a89bd5fae60d39e90b7a8 Mon Sep 17 00:00:00 2001 From: Alpar Torok Date: Tue, 6 Nov 2018 14:00:40 +0200 Subject: [PATCH] Add missing up-to-date configuration (#35255) * Add missing up-to-date configuration The source properties file and the dynamic elasticsearch version (set based on properties ) were missing from task outputs leading to the task being incorrectly considered up to date. Closes #35204 --- buildSrc/build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index f3735c269ba..bcf4d021ec3 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -44,9 +44,13 @@ if (project == rootProject) { // we update the version property to reflect if we are building a snapshot or a release build // we write this back out below to load it in the Build.java which will be shown in rest main action // to indicate this being a snapshot build or a release build. -Properties props = VersionPropertiesLoader.loadBuildSrcVersion(project.file('version.properties')) +File propsFile = project.file('version.properties') +Properties props = VersionPropertiesLoader.loadBuildSrcVersion(propsFile) version = props.getProperty("elasticsearch") processResources { + inputs.file(propsFile) + // We need to be explicit with the version because we add snapshot and qualifier to it based on properties + inputs.property("dynamic_elasticsearch_version", props.getProperty("elasticsearch")) doLast { Writer writer = file("$destinationDir/version.properties").newWriter() try {