Skip to content

[PM Fixer] Fix gradle v9.8.0-RC2 compatibility: remove bundled 'idea' plugin removed in Gradle 9.x - #3715

Open
agrasth wants to merge 1 commit into
masterfrom
pm-compat/gradle-v9.8.0-RC2-1652585
Open

agrasth wants to merge 1 commit into
masterfrom
pm-compat/gradle-v9.8.0-RC2-1652585

Conversation

@agrasth

@agrasth agrasth commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Summary

All Gradle integration tests failed when run with Gradle v9.8.0-RC2 (and any Gradle 9.x release). The root cause is that apply plugin: 'idea' appears in two test fixture build scripts:

  • testdata/gradle/gradleproject/build.gradle
  • testdata/gradle/projectwithplugin/build.gradle

Gradle's IDEA IDE plugin (org.gradle.plugins.ide.idea.IdeaPlugin) was removed from Gradle's bundled distribution in Gradle 9.0. Because apply plugin statements are evaluated during the configuration phase — before any task runs — this produces an immediate fatal error on every build invocation:

Plugin with id 'idea' not found.

This caused steps.run_tests.outcome = failure for every test that exercises gradleproject or projectwithplugin, including TestGradleBuildWithServerID, TestGradleBuildWithServerIDAndDetailedSummary, TestGradleWithDeploymentView, TestGradleBuildConditionalUpload, TestGradleBuildWithFlexPackFallback, TestGradleBuildPublishWithLocalGitVcsProps, and TestGradleBuildWithServerIDWithUsesPlugin.

Fix

Remove the two apply plugin: 'idea' lines. This is a test-fixture-only change — it does not affect product behavior in any way.

The IDEA plugin generates IntelliJ IDEA project files (.idea/, .iml) for developer ergonomics. None of the integration tests depend on IDE project-file generation; they test build, compile, artifact publish, and build-info collection. The plugin was never exercised by the test suite — it was just inherited from an old project template.

Removing it is safe for all Gradle versions (5.x, 6.x, 7.x, 8.x, 9.x): the plugin was optional in older versions and non-existent in newer ones.

Compatibility impact

No exported Go symbols were changed. This change touches only Groovy build script test fixtures in testdata/. Existing supported Gradle versions (5.6.4, 8.3) are unaffected — removing apply plugin: 'idea' has no effect on older Gradle because the plugin was purely additive.

Test plan

  • go build ./...: Not applicable — the changed files are Groovy build scripts, not Go source. Go is also not installed in this environment.
  • gofmt -l .: Not applicable for the same reason.
  • go vet ./...: Not applicable.
  • Live PM integration test: Cannot be run in this environment (no live Artifactory). The fix removes a configuration-time plugin lookup failure that would cause every Gradle invocation to abort before executing any task.

Opened automatically by PM Compat Fixer investigating gradle v9.8.0-RC2.

…dle 9.x

The IDEA IDE plugin was removed from Gradle's bundled distribution in
Gradle 9.0. Both gradleproject and projectwithplugin test fixtures used
`apply plugin: 'idea'`, which is evaluated at configuration time and
causes an immediate build failure with Gradle 9.x:

  Plugin with id 'idea' not found.

This made every gradle integration test fail when run with any Gradle 9.x
version. The 'idea' plugin was only used for IntelliJ IDEA project-file
generation — it has no effect on the build, compile, publish, or test
operations exercised by the integration tests. Removing it is safe for
all Gradle versions.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
@agrasth agrasth added the pm-compat-fixer Opened automatically by JFrog's PM Compat Fixer agent label Sep 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


pm-compat-fixer seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

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

Labels

pm-compat-fixer Opened automatically by JFrog's PM Compat Fixer agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant