Skip to content

Commit 2f34b68

Browse files
committed
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
1 parent 509a45c commit 2f34b68

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

buildSrc/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,13 @@ if (project == rootProject) {
4747
// we update the version property to reflect if we are building a snapshot or a release build
4848
// we write this back out below to load it in the Build.java which will be shown in rest main action
4949
// to indicate this being a snapshot build or a release build.
50-
Properties props = VersionPropertiesLoader.loadBuildSrcVersion(project.file('version.properties'))
50+
File propsFile = project.file('version.properties')
51+
Properties props = VersionPropertiesLoader.loadBuildSrcVersion(propsFile)
5152
version = props.getProperty("elasticsearch")
5253
processResources {
54+
inputs.file(propsFile)
55+
// We need to be explicit with the version because we add snapshot and qualifier to it based on properties
56+
inputs.property("dynamic_elasticsearch_version", props.getProperty("elasticsearch"))
5357
doLast {
5458
Writer writer = file("$destinationDir/version.properties").newWriter()
5559
try {

0 commit comments

Comments
 (0)