mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
Merge pull request #18050 from rjernst/plugin_props_uptodate
Build: Fix plugin properties generation when version changes
This commit is contained in:
commit
946c7e47fa
@ -57,11 +57,13 @@ class PluginPropertiesTask extends Copy {
|
|||||||
// configure property substitution
|
// configure property substitution
|
||||||
from(templateFile)
|
from(templateFile)
|
||||||
into(generatedResourcesDir)
|
into(generatedResourcesDir)
|
||||||
expand(generateSubstitutions())
|
Map<String, String> properties = generateSubstitutions()
|
||||||
|
expand(properties)
|
||||||
|
inputs.properties(properties)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Map generateSubstitutions() {
|
Map<String, String> generateSubstitutions() {
|
||||||
def stringSnap = { version ->
|
def stringSnap = { version ->
|
||||||
if (version.endsWith("-SNAPSHOT")) {
|
if (version.endsWith("-SNAPSHOT")) {
|
||||||
return version.substring(0, version.length() - 9)
|
return version.substring(0, version.length() - 9)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user