Skip to content

Resolve org.openrewrite build plugins from the Code Genome Project - #1047

Merged
greg-at-moderne merged 1 commit into
mainfrom
cgp-plugin-management
Sep 2, 2026
Merged

Resolve org.openrewrite build plugins from the Code Genome Project#1047
greg-at-moderne merged 1 commit into
mainfrom
cgp-plugin-management

Conversation

@kmccarp

@kmccarp kmccarp commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Background / problem

  • rewrite-build-gradle-plugin 2.23.2 depends on rewrite releases published only to the Code Genome Project, but this repository resolves its plugin classpath from the Gradle Plugin Portal alone, so configuration fails with Could not find org.openrewrite:rewrite-java:8.91.4 before any convention plugin runs. This is item (d) of moderneinc/customer-requests#2788.

Solution

  • Registers the Code Genome Project in pluginManagement.repositories, scoped to the org.openrewrite and io.moderne groups, with credentials from the codegenomeUsername and codegenomePassword Gradle properties or the CODEGENOME_USERNAME and CODEGENOME_TOKEN environment variables, which CI already provides through gh-automation. Applied by io.moderne.recipe.AddCodeGenomePluginRepository; the same block is already green in Replace the Log4j setLevel Refaster template with its generated recipe rewrite-logging-frameworks#304.

Test plan

  • CI configures and builds

Use this link to re-run the recipe: https://dev.moderne.io/recipes/io.moderne.recipe.AddCodeGenomePluginRepository?organizationId=VXNlcnMva2V2aW5AbW9kZXJuZS5pby9NK08%3D

@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Sep 2, 2026
@greg-at-moderne
greg-at-moderne merged commit 4d4f144 into main Sep 2, 2026
1 check passed
@greg-at-moderne
greg-at-moderne deleted the cgp-plugin-management branch September 2, 2026 05:29
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Sep 2, 2026
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