Build: Fix plugin properties generation when version changes
This change fixes the generation of plugin properties files when the version changes. Before, it would not regenerate, and running integTest would fail with an incompatibile version error.
This commit is contained in:
parent
d9afb8bfd6
commit
10f9df3921
|
@ -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…
Reference in New Issue