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
This commit is contained in:
parent
999f8f5850
commit
58f3e81555
|
@ -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 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
|
// 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.
|
// 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")
|
version = props.getProperty("elasticsearch")
|
||||||
processResources {
|
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 {
|
doLast {
|
||||||
Writer writer = file("$destinationDir/version.properties").newWriter()
|
Writer writer = file("$destinationDir/version.properties").newWriter()
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue