Repository navigation
Conversation
Plugin versions up to 7.44.0 depend on kotlin-stdlib, which the Code Genome Project does not serve, so an initscript that lists only CGP fails to resolve the plugin.
Member
Author
|
Part of a set of changes for openrewrite/rewrite-gradle-plugin#481. Related PRs:
|
shanman190
approved these changes
Oct 14, 2026
Member
Author
|
No longer needed: plugin 7.44.1 drops kotlin-stdlib from its published metadata (openrewrite/rewrite-gradle-plugin#482), so an initscript with only the Code Genome Project resolves it. The docs now show 7.44.1, since rewrite-recipe-markdown-generator#392 resolves the plugin version from CGP. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
org.jetbrains.kotlin:kotlin-stdlib:2.4.0was not found rewrite-gradle-plugin#481The init script that every recipe page generates (
RunRecipe) and the "Running Rewrite on a Gradle project without modifying the build" guide list only the Code Genome Project underinitscript { repositories }. Every released plugin version so far declareskotlin-stdlibas a dependency, and CGP doesn't serve it, so the script fails with:openrewrite/rewrite-gradle-plugin#482 drops that dependency from future releases. Recipe pages, though, pin
{{VERSION_REWRITE_GRADLE_PLUGIN}}, currently 7.41.0, so they need Maven Central until that pin moves past the fix. This addsmavenCentral()next to CGP in the Groovy and Kotlin variants of both snippets, and explains why in the guide.yarn buildpasses.