Since build doesn't appear to be working with Gradle plugin build
已回答
I have the following in my Gradle build
intellij {
version 'IU-2018.3.1'
plugins = ['JavaScriptLanguage']
}
And the following in my plugin.xml
<idea-version since-build="183"/>
Yet when trying in install my plugin into WeStorm 2019.1 EAP I receive an error stating that my plugin is not compatible with this version of WebStorm when trying to install from disk and a colleague also received the same error when trying to install in 2019.1 EAP.
What do I need to do in order to resolve this issue. Prior to this I used to use since build and it always worked going forward.
请先登录再写评论。
Please check http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html about required "<depends>"
Can you please explain further. I have read the page and it doesn't explain how to specify since-build and until-build with gradle-based projects.
I have a plugin that I am developing for the first time and when I execute buildPlugin and try to install the local artifact it doesn't seem to install. If I unpack the binary and look at plugin.xml it doesn't have the same since-build and until-build that my plugin.xml does locally. If I specify a version in the intellij {} block it overwrites since-build and until-build with the specific version that it executes. What is the way to specify and test a range of intelliJ platform versions with build.gradle?
My plugin is here https://github.com/stefansjs/flatbuffers-intellij-plugin/blob/release/build.gradle
Ok, it took me a while to figure it out, but the patchPluginXml task in gradle is explicitly overwriting the since-build in plugin.xml. That's confusing to say the least when the documentation tells you to fill in the value in plugin.xml and explains what all the version ranges mean but don't tell you why it has no effect
I finally found the right documentation here https://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system/gradle_guide.html#patching-the-plugin-configuration-file
Thanks for your feedback, Stefan Sullivan. I've added a note on https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html to make the role of Gradle more clear.