diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/plugin/PluginPropertiesTask.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/plugin/PluginPropertiesTask.groovy index 856c9255312..7156c2650cb 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/plugin/PluginPropertiesTask.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/plugin/PluginPropertiesTask.groovy @@ -57,11 +57,13 @@ class PluginPropertiesTask extends Copy { // configure property substitution from(templateFile) into(generatedResourcesDir) - expand(generateSubstitutions()) + Map properties = generateSubstitutions() + expand(properties) + inputs.properties(properties) } } - Map generateSubstitutions() { + Map generateSubstitutions() { def stringSnap = { version -> if (version.endsWith("-SNAPSHOT")) { return version.substring(0, version.length() - 9)