diff --git a/build/scripts/layouts.gant b/build/scripts/layouts.gant index 7b87103e70db..2d2c56280509 100644 --- a/build/scripts/layouts.gant +++ b/build/scripts/layouts.gant @@ -684,8 +684,9 @@ def setPluginVersionAndSince(String moduleName, String version) { def text = file.text if (!text.contains("")) { def dotIndex = version.indexOf('.') - def untilBuild = dotIndex > 0 ? (Integer.parseInt(version.substring(0, dotIndex)) + 1).toString() + ".0" : version - file.text = text.replace("", "\n ${version}\n \n") + def untilBuild = dotIndex > 0 ? Integer.parseInt(version.substring(0, dotIndex)) + ".*" : version + def anchor = text.contains("") ? "" : "" + file.text = text.replace(anchor, "${anchor}\n ${version}\n \n") } } }