Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

<idea-version> in plugin.xml in overwritten in final jar

I am creating a custom plugin and using details in plugin.xml file:

<idea-version since-build="162.0" until-build="181.*"/>

But after I build the plugin project using gradle-build task , i am seeing the plugin.xml in final jar has below . Somehow the tag I have defined is getting overwritten.

<idea-version since-build="181.4445" until-build="181.*"/>

I want to use "162.0" to make plugin work in older IDE versions.

like image 935
Pintu Avatar asked Oct 18 '25 10:10

Pintu


1 Answers

You can configure Gradle to patch plugin.xml file as described in the documentation:

patchPluginXml {
  sinceBuild '162'
  untilBuild '181'
}
like image 117
CrazyCoder Avatar answered Oct 22 '25 06:10

CrazyCoder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!