diff --git a/build/scripts/layouts.gant b/build/scripts/layouts.gant index 3beeffaec822..c120b00ad958 100644 --- a/build/scripts/layouts.gant +++ b/build/scripts/layouts.gant @@ -666,6 +666,15 @@ public def layoutCommunityPlugins(String home, boolean maySkipAndroidPlugin = fa } } +def setPluginVersionAndSince(String moduleName, String version) { + def file = new File(projectBuilder.moduleOutput(findModule(moduleName)) + "/META-INF/plugin.xml") + if (file.isFile()) { + def text = file.text + if (!text.contains("")) { + file.text = text.replace("", "\n ${version}\n \n") + } + } +} def layoutPlugin(String moduleName) { layoutPlugin(moduleName, moduleName, {}) @@ -697,6 +706,8 @@ def layoutPlugin(String pluginName, String moduleName, String jarName, Closure c return } + setPluginVersionAndSince(moduleName, requireProperty("buildNumber", requireProperty("build.number", snapshot))) + dir(pluginName) { dir("lib") { jar("${jarName}.jar") { diff --git a/plugins/settings-repository/resources/META-INF/plugin.xml b/plugins/settings-repository/resources/META-INF/plugin.xml index a118c1a82c85..d2f4a3187792 100644 --- a/plugins/settings-repository/resources/META-INF/plugin.xml +++ b/plugins/settings-repository/resources/META-INF/plugin.xml @@ -5,8 +5,6 @@

Supports sharing settings between installations of IntelliJ Platform based products used by the same developer (or team) on different computers.

Synchronization is performed automatically after successful completion of "Update Project" or "Push" actions. Also you can do sync using VCS -> Sync Settings.

See project page for more info.

]]> - 999.999 - JetBrains