v2.0.0-RC1
版本发布时间: 2024-07-19 22:47:59
JetBrains/intellij-platform-gradle-plugin最新发布版本:v2.0.1(2024-08-09 05:03:45)
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.Starter
for 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
targetCompatibility
when defining composed jar and distribution archive variants. -
testIdeUi
is now dedicated to work withTestFrameworkType.Starter
. - Extend
testImplementation
configuration with dependencies fromintellijPlatformTestDependencies
. - Move
composed-jar
anddistribution
artifacts definition to theorg.jetbrains.intellij.platform.module
plugin.
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
build
number instead ofversion
. - Exclude JUnit4 (
junit4.jar
) from the IntelliJ Platform classpath - Use
Path.invariantSeparatorsPathString
inModuleDescriptorsValueSource
to collect modules for exclusion on Windows
Removed
- Removed
intellijPlatform.verifyPlugin.downloadDirectory
andintellijPlatform.verifyPlugin.homeDirectory
as 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.:
- :one: 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
- :two: Docs are still in progress, but I expect to get them in sync with the code base next week.
- :three: 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.
- :four: Any issues with the latest release please submit directly to GitHub Issues.
- :five: 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
:heart: Thank you, folks, for the patience and all the feedback, and good luck with migration!
1、 IntelliJPlatformGradlePlugin-2.0.0-RC1-javadoc.jar 3.33MB
2、 IntelliJPlatformGradlePlugin-2.0.0-RC1-sources.jar 171.47KB
3、 IntelliJPlatformGradlePlugin-2.0.0-RC1-test-fixtures.jar 22.85KB