hn.today

Recipes Are Moving from Maven Central to the Code Genome Project

docs.openrewrite.org16 points2 comments
Screenshot of Recipes Are Moving from Maven Central to the Code Genome Project

OpenRewrite's recipes and most modules have been moved off Maven Central and are now distributed through the Code Genome Project. To resolve releases you must add https://artifacts.codegenomeproject.org/maven to your build and supply credentials (use the email/username you signed in with and the token as the password). Keep Maven Central configured alongside it because OpenRewrite transitive dependencies still resolve from there. The Gradle plugin and bill-of‑materials artifacts are also published to the Code Genome Project; the documentation strongly recommends using the rewrite BOMs (for example rewrite-bom 8.93.8 and rewrite-recipe-bom 3.41.0) to align module versions. Examples show how to declare the repository in pom.xml, settings.xml, and build.gradle(.kts), plus CLI commands (mod config ...) to point the Moderne CLI at the repository.

The reference lists concrete versions for key modules (rewrite-core, rewrite-java, rewrite-gradle, rewrite-json, etc. at 8.93.8 and recipe bundles like rewrite-all 1.30.2, rewrite-jackson 1.31.0, rewrite-java-dependencies 1.64.0). Some modules are source‑available and served only to Moderne customers, so those are omitted from public jar install commands; pip and npm packages are unaffected. If an organization mirrors the Code Genome Project in an internal registry (Artifactory/Nexus), the guide shows how to point builds at that mirror and skip direct credentials.

Read on docs.openrewrite.org2 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

My C23 Conventions

My C23 Conventions

Abner Coimbre discusses modern C conventions in C23, emphasizing the use of maybe_unused to handle unused return values and improve code clarity. He also highlights issues with designated initializers not zero-initializing structs, leading to more careful struct initialization practices. (abner.page)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.