Skip to content

Replace SelfResolvingDependency by ExternalModuleDependency#11340

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
masterfrom
bdu/SelfResolvingDependency-is-gone-in-gradle9
May 11, 2026
Merged

Replace SelfResolvingDependency by ExternalModuleDependency#11340
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
masterfrom
bdu/SelfResolvingDependency-is-gone-in-gradle9

Conversation

@bric3
Copy link
Copy Markdown
Contributor

@bric3 bric3 commented May 11, 2026

What Does This Do

Replace !(it instanceof SelfResolvingDependency) with it instanceof ExternalModuleDependency in the POM-generation block of gradle/publish.gradle. The filter now explicitly allows only dependencies with Maven coordinates (project deps and external module deps) rather than excluding file deps by the already deprecated and then removed marker interface.

Motivation

SelfResolvingDependency was removed in Gradle 9 as part of the dependency API cleanup, now, as suggested in the deprecation message all resolution happens through a Configuration, not through individual dependencies.
The positive check is also safer: a future unknown dependency type without Maven coordinates won't accidentally slip into published POM files, whereas a negative exclusion could let it through.

Additional Notes

Sub-PR from #10402, #11272

…dency

`SelfResolvingDependency` was removed in Gradle 9. The original POM
filter in `publish.gradle` excluded file-based dependencies by negating
instanceof `SelfResolvingDependency`, which `FileCollectionDependency`
implemented in Gradle 8.
This change replaces it with a positive check for `ProjectDependency`
and `ExternalModuleDependency`, which are the two types that actually
have Maven coordinates and belong in a published POM.
@bric3 bric3 requested a review from a team as a code owner May 11, 2026 12:55
@bric3 bric3 requested a review from mhlidd May 11, 2026 12:55
@bric3 bric3 added tag: no release notes Changes to exclude from release notes comp: tooling Build & Tooling labels May 11, 2026
@bric3 bric3 enabled auto-merge May 11, 2026 12:57
@bric3 bric3 mentioned this pull request May 11, 2026
9 tasks
@bric3 bric3 added this pull request to the merge queue May 11, 2026
@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented May 11, 2026

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 Bot commented May 11, 2026

View all feedbacks in Devflow UI.

2026-05-11 13:46:45 UTC ℹ️ Start processing command /merge


2026-05-11 13:46:50 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-05-11 15:47:27 UTCMergeQueue: The build pipeline has timeout

The merge request has been interrupted because the build 0 took longer than expected. The current limit for the base branch 'master' is 120 minutes.

Possible reasons:

  • some mandatory checkruns are failing:
    • Check pull request labels
    • Check pull requests
    • Enforce Groovy migration

@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 11, 2026
@bric3 bric3 enabled auto-merge May 11, 2026 16:02
@bric3 bric3 added this pull request to the merge queue May 11, 2026
@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented May 11, 2026

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 Bot commented May 11, 2026

View all feedbacks in Devflow UI.

2026-05-11 16:56:39 UTC ℹ️ Start processing command /merge


2026-05-11 16:56:44 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-05-11 18:16:16 UTC ℹ️ MergeQueue: This merge request was merged

@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 11, 2026
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot merged commit 1da0748 into master May 11, 2026
571 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot deleted the bdu/SelfResolvingDependency-is-gone-in-gradle9 branch May 11, 2026 18:16
@github-actions github-actions Bot added this to the 1.63.0 milestone May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: tooling Build & Tooling tag: no release notes Changes to exclude from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants