We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 698d561 commit 9c15d2bCopy full SHA for 9c15d2b
scripts/SetVersion.groovy
@@ -59,7 +59,7 @@ target ('default': "Sets the current application version") {
59
String newVersionString = "def version = \"${newVersion}\""
60
61
if (matcher.size() > 0) {
62
- descriptorContent = descriptorContent.replaceAll(/def\s*version\s*=\s*".*"/, newVersionString)
+ descriptorContent = descriptorContent.replaceFirst(/def\s*version\s*=\s*".*"/, newVersionString)
63
}
64
else {
65
descriptorContent = descriptorContent.replaceFirst(/\{/,"{\n\t$newVersionString // added by set-version")
0 commit comments