Skip to content

Add combined FindRepositoryOrder for Maven and Gradle#171

Merged
kmccarp merged 3 commits intomainfrom
kmccarp/gradle-find-repo-order
Feb 5, 2026
Merged

Add combined FindRepositoryOrder for Maven and Gradle#171
kmccarp merged 3 commits intomainfrom
kmccarp/gradle-find-repo-order

Conversation

@kmccarp
Copy link
Contributor

@kmccarp kmccarp commented Feb 4, 2026

Summary

  • Add org.openrewrite.java.dependencies.FindRepositoryOrder that delegates to both Maven and Gradle FindRepositoryOrder recipes
  • Produces the MavenRepositoryOrder data table with id, uri, knownToExist, and rank for projects using either build system

Problem

Users running FindRepositoryOrder against organizations with mixed Maven and Gradle projects had to run the Maven and Gradle recipes separately. Gradle-only orgs got no results from the Maven recipe.

Solution

A combined recipe following the same pattern as FindDependency, ChangeDependency, etc. — delegates to the build-system-specific implementations via isAcceptable().

Dependencies

Test plan

  • Maven repository order detection
  • Gradle repository order detection
  • Combined data table from both build systems in one run

Add a combined recipe that delegates to both
org.openrewrite.maven.search.FindRepositoryOrder and
org.openrewrite.gradle.search.FindRepositoryOrder, populating
the MavenRepositoryOrder data table for projects regardless of
build system.

Depends on openrewrite/rewrite#6676 for the Gradle FindRepositoryOrder.
@github-project-automation github-project-automation bot moved this from In Progress to Ready to Review in OpenRewrite Feb 4, 2026
@kmccarp kmccarp merged commit 32dc79e into main Feb 5, 2026
2 of 4 checks passed
@github-project-automation github-project-automation bot moved this from Ready to Review to Done in OpenRewrite Feb 5, 2026
@kmccarp kmccarp deleted the kmccarp/gradle-find-repo-order branch February 5, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants