From f065882dff8ffa717691046ffe522499840097ce Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Wed, 7 Oct 2015 09:57:05 +0200 Subject: [PATCH] CR-IC-7402 IDEA-146068 --- build/scripts/layouts.gant | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/scripts/layouts.gant b/build/scripts/layouts.gant index e866606c5852..c32d10a8ced1 100644 --- a/build/scripts/layouts.gant +++ b/build/scripts/layouts.gant @@ -664,8 +664,9 @@ def setPluginVersionAndSince(String moduleName, String version) { if (file.isFile()) { def text = file.text if (!text.contains("")) { - def nextMajorVersion = Integer.parseInt(version.substring(0, version.indexOf('.'))) + 1 - file.text = text.replace("", "\n ${version}\n \n") + 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") } } }