diff --git a/python/build/groovy/org/jetbrains/intellij/build/pycharm/PythonPluginPropertiesBase.groovy b/python/build/groovy/org/jetbrains/intellij/build/pycharm/PythonPluginPropertiesBase.groovy index b2cd586b9f66..571cf6facd7b 100644 --- a/python/build/groovy/org/jetbrains/intellij/build/pycharm/PythonPluginPropertiesBase.groovy +++ b/python/build/groovy/org/jetbrains/intellij/build/pycharm/PythonPluginPropertiesBase.groovy @@ -42,7 +42,7 @@ abstract class PythonPluginPropertiesBase extends PyCharmPropertiesBase { super() } - PluginLayout pythonCommunityPluginLayout(String pluginVersion) { + PluginLayout pythonCommunityPluginLayout(String pluginVersion, @DelegatesTo(PluginLayout.PluginLayoutSpec) Closure body = {}) { def pluginXmlModules = [ "IntelliLang-python", "ipnb", @@ -53,6 +53,8 @@ abstract class PythonPluginPropertiesBase extends PyCharmPropertiesBase { excludeFromModule(module, "META-INF/plugin.xml") } excludeFromModule(pythonCommunityPluginModule, "META-INF/python-plugin-dependencies.xml") + body.delegate = delegate + body() } }