2.0.0-RC1
·
647 commits
to main
since this release
The IntelliJ Platform Gradle Plugin 2.0.0-rc1 is a plugin for the Gradle build system to help configure environments for building, testing, verifying, and publishing plugins for IntelliJ-based IDEs. It is a successor of Gradle IntelliJ Plugin 1.x.
To read more about the upcoming 2.0.0 release, please visit the documentation and the Migration Guide from Gradle IntelliJ Plugin.
If you have any issues or requests, please submit them to the GitHub Issues.
To submit questions or suggestions in relation to the documentation, use the feedback form at the bottom of the article.
Added
- Introduce
TestFrameworkType.Starterfor adding dependencies on the Starter UI testing framework.
Changed
- JUnit4 is no longer provided via IntelliJ Platform — it is necessary to add it to the project with
testImplementation. - Use the actual JVM
targetCompatibilitywhen defining composed jar and distribution archive variants. testIdeUiis now dedicated to work withTestFrameworkType.Starter.- Extend
testImplementationconfiguration with dependencies fromintellijPlatformTestDependencies. - Move
composed-jaranddistributionartifacts definition to theorg.jetbrains.intellij.platform.moduleplugin.
Fixed
- Fixed the broken resolution of the dependency on a local IntelliJ Platform.
- Fixed renaming files with the same name when preparing the sandbox.
- Fixed the resolving of the IDEs list for
verifyPlugin. - ProductReleasesValueSource: pick the IDE with the highest
buildnumber instead ofversion. - Exclude JUnit4 (
junit4.jar) from the IntelliJ Platform classpath - Use
Path.invariantSeparatorsPathStringinModuleDescriptorsValueSourceto collect modules for exclusion on Windows
Removed
- Removed
intellijPlatform.verifyPlugin.downloadDirectoryandintellijPlatform.verifyPlugin.homeDirectoryas IDEs cache for Plugin Verifier is now managed with Gradle.
Breaking change
- If you have tests defined in your plugin, the JUnit library is now excluded from the classpath (as it was present due to the bug). To add it, use:
testImplementation("junit:junit:4.13.2")
P.S.:
- 1️⃣ Due to the persisting issue related to multiple IntelliJ Platform copies in the Gradle Cache, I wrote this Kotlin Script that helps clean it up: https://gist.github.com/hsz/0fc45e1a6fc9ef73d4e4f5960058bded
- 2️⃣ Docs are still in progress, but I expect to get them in sync with the code base next week.
- 3️⃣ Please start the migration if you haven’t yet, as the 2.0 release is required when you plan to use IntelliJ Platform 2024 as a target platform for building the plugin.
- 4️⃣ Any issues with the latest release please submit directly to GitHub Issues.
- 5️⃣ If you have five minutes, I’ll gladly receive pull requests to docs or at least highlight weak points. You can use the form at the bottom of each documentation page -> https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin.html
❤️ Thank you, folks, for the patience and all the feedback, and good luck with migration!