Skip to content

Migrate from Gradle IntelliJ Plugin (v1) to IntelliJ Platform Gradle Plugin (v2)#208

Draft
duemir wants to merge 3 commits intomasterfrom
jetbrains-gradle-plugin-take-2
Draft

Migrate from Gradle IntelliJ Plugin (v1) to IntelliJ Platform Gradle Plugin (v2)#208
duemir wants to merge 3 commits intomasterfrom
jetbrains-gradle-plugin-take-2

Conversation

@duemir
Copy link
Member

@duemir duemir commented Mar 1, 2026

JetBrains plugin tooling switched to a new major version that uses incompatible Gradle configuration.
I followed the Migrating from Gradle IntelliJ Plugin (1.x) guide.
It looks like the 1.x plugin can no longer successfully launch the verifier, hence failing builds. Therefore this migration has to happen.
Fixes #187 . Different take on #188

Testing done

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

The requirements of new Jetbrains Gradle plugin are:
* IntelliJ Platform: 2022.3
* Gradle: 8.13
* Java Runtime: 17

Only Gradle one was not met. Upgrading Wrapper to the latest v8 release.
@duemir duemir marked this pull request as draft March 1, 2026 07:00
Gradle build declaration structure changed as required for the major incompatible plugin upgrade.
Properties are simplified. Single `ideaVersion` property drives the platform dependency, build compatibility declaration, and plugin verifier.
@duemir duemir added the internal Pull requests that update anything related to building the plugin but not the plugin itself label Mar 1, 2026
@duemir
Copy link
Member Author

duemir commented Mar 1, 2026

22:08:30           > Could not get resource 'https://download.jetbrains.com/idea/ideaIU-2024.1.7.tar.gz'.
22:08:30              > No space left on device

Doh! Too many IntelliJs...

@duemir duemir changed the title Take 2 of Migration from Gradle IntelliJ Plugin (v1) to IntelliJ Platform Gradle Plugin (v2) Migrate from Gradle IntelliJ Plugin (v1) to IntelliJ Platform Gradle Plugin (v2) Mar 4, 2026
@duemir duemir requested a review from timja March 4, 2026 11:47
Comment on lines +69 to +72
// Should by default be matching the selected intellijPlatform above
// sinceBuild = "233.00"
// To keep the open upper bound v2 of gradle plugin expects this option omitted instead of set to ""
// untilBuild = ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Pull requests that update anything related to building the plugin but not the plugin itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrating from Gradle IntelliJ Plugin (1.x)

2 participants