Plugin is not compatible with the current version of the IDE, because it requires build 223.* or older but the current build is IU-231.9011.34

Answered

I am working on a plugin that must be compatible with many platform versions of IntelliJ. As shown, I have this version, and other users might have the 2022.3 version.

In my build.gradle, I configured it like this:

// Configure Gradle IntelliJ Plugin intellij { pluginName = properties("pluginName").get() version = properties("platformVersion").get() type = properties("platformType").get() sinceBuild = properties("pluginSinceBuild").get() untilBuild = properties("pluginUntilBuild").get() }.

And in my gradle.properties, I defined the following:

# Supported build number ranges and IntelliJ Platform versions # https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild=211 pluginUntilBuild=232.* # IntelliJ Platform Properties # https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension platformType=IU platformVersion=2022.3.2

 

How can I make the plugin run on many versions without continuously updating it for the latest platform? At the same time, I want to ensure that users with older platform versions can still use the plugin.

0
2 comments

Hi Saeed,
Please configure it like this:

intellij {
 pluginName = properties("pluginName").get()
 version = properties("platformVersion").get()
 type = properties("platformType").get()
 updateSinceUntilBuild.set(false)
}

...

tasks {
  ...
  patchPluginXml {
    version.set(pluginVersion)
    sinceBuild.set(properties("pluginSinceBuild").get())
    // don't set untilBuild
    ...
  }
  ...
}
1

Thank you very much. it is working now.

1

Please sign in to leave a comment.