Skip to content

fix: Remove internal DslObject API for Gradle 10 compatibility#1724

Open
Frisch12 wants to merge 1 commit intomainfrom
fix/remove-dslobject-internal-api
Open

fix: Remove internal DslObject API for Gradle 10 compatibility#1724
Frisch12 wants to merge 1 commit intomainfrom
fix/remove-dslobject-internal-api

Conversation

@Frisch12
Copy link
Copy Markdown
Member

@Frisch12 Frisch12 commented Apr 3, 2026

Summary

  • Removes the DslObject internal Gradle API usage from LombokPlugin.resolveSpotBugVersion()
  • The DslObject fallback was unreachable dead code — when the SpotBugs plugin is present, its extension is always a CodeQualityExtension subclass handled by the public API path
  • Replaces with a simple default version fallback

Found during automated main branch review. The DslObject import from org.gradle.api.internal.plugins will break in Gradle 10.

Test plan

  • Verify build passes with SpotBugs plugin applied
  • Verify build passes with SonarQube plugin applied (without SpotBugs)
  • Verify build passes without either plugin

The DslObject fallback in resolveSpotBugVersion() was unreachable dead
code — when the SpotBugs plugin is present, its extension is always a
CodeQualityExtension subclass handled by the public API path above.
Replace with a simple default version fallback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant