How can we declare a plugin compatible with future versions?


We have a plugin which only declares 

intellij {

no untilBuild etc.

As I understand this means the plugin should be compatible with future versions of IntelliJ: ""Not specifying until-build means it will include all future builds. This includes future, yet unreleased versions and possibly new IDEs".

However, what we observe is that the plugin becomes incompatible every time a new IDE version is released, and we'll need to release a new version of the plugin to support it (with no other changes than updating "version.set" as above). How can we avoid this?



The attribute version sets both since and until build values:

For example, the default values for the attributes patchPluginXml.sinceBuild and patchPluginXml.untilBuild are defined based on the declared (or default) value of intellij.version. So by default patchPluginXml.sinceBuild and patchPluginXml.untilBuild are substituted into the <idea-version> element's since-build and until-build attributes in the plugin.xml file.



Thanks for your response. 

So,  to conclude, “Not specifying until-build means it will include all future builds.” only holds if intellij.version - which is mandatory - is not specified?

Is there some other way to ensure a plugin stays compatible?


Have you tried explicitly specifying sinceBuild and setting untilBuild to null?

This here worked in an older version of my plugin:

patchPluginXml {
    changeNotes '''
      <li>Update for newer IntelliJ versions.</li>
    sinceBuild '212.5'
    untilBuild null

However I switched to and didn't try it there, yet. If it doesn't work you can always patch the plugin xml yourself. If you want to automate it, you can add a custom gradle task for that purpose.


Please sign in to leave a comment.