Skip to content

Document Code Genome Project repository in README - #1193

Merged
timtebeek merged 1 commit into
mainfrom
tim/maven-central-sunset-impact
Aug 13, 2026
Merged

timtebeek merged 1 commit into
mainfrom
tim/maven-central-sunset-impact

Conversation

@timtebeek

Copy link
Copy Markdown
Member

New releases are published to artifacts.codegenomeproject.org rather than Maven Central, but the README still pointed users at the OSSRH snapshot repository and said nothing about how to resolve the plugin at all.

This adds an "Artifact repository" section covering the settings.xml credentials and the repository declaration under both <repositories> and <pluginRepositories> — both are needed, since plugin repositories resolve the plugin and its <dependencies> while project repositories resolve rewrite.recipeArtifactCoordinates and any OpenRewrite artifacts in the user's own dependency tree. Snapshots are enabled on both entries because CGP serves releases and snapshots from one repository, which also lets the Snapshots section drop its now-obsolete OSSRH <pluginRepository>. Also documents excluding codegenome from a catch-all mirror, since a mirror's id won't match the codegenome server and the credentials silently fail to apply.

New releases are published to artifacts.codegenomeproject.org rather than
Maven Central, so document the settings.xml credentials and the repository
declaration under both <repositories> and <pluginRepositories>. Replace the
OSSRH snapshot repository, since CGP serves releases and snapshots from a
single repository.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Aug 13, 2026
@timtebeek
timtebeek merged commit 0401a0e into main Aug 13, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Aug 13, 2026
@timtebeek
timtebeek deleted the tim/maven-central-sunset-impact branch August 13, 2026 18:06
timtebeek added a commit that referenced this pull request Aug 26, 2026
Main meanwhile grew its own Code Genome Project publishing in #1191, but as a
dual publish: Sonatype stays the deploy target and a codegenome-publish profile,
activated by AWS credentials, points distributionManagement at the CGP bucket for
a second deploy step in each workflow. This branch publishes solely to CGP, so
the resolution keeps that single-target shape and drops the duplication it makes
redundant:

- pom.xml keeps CGP in the top-level distributionManagement, so the
  codegenome-publish profile that overrode it with the same coordinates is gone.
- The s3 wagon is declared once, in main's .mvn/extensions.xml, rather than also
  in the pom's build extensions.
- ci.yml and publish.yml drop the extra publish-*-codegenome steps, along with
  the Sonatype credentials and the --settings/--global-settings pair.

Adopted from main: the CODEGENOME_USERNAME/CODEGENOME_TOKEN secret rename from
#1197, the narrowed rollback condition keyed on steps.publish-release.outcome,
and the README's CGP documentation from #1193, which covers what this branch's
smaller README edit did and more.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant