Skip to content

gradle9.1 not found #993

@yuanshibo

Description

@yuanshibo

What version of OpenRewrite are you using?
rewrite-migrate-java v3.28.0

How are you running OpenRewrite?
gradle task

What is the smallest, simplest way to reproduce the problem?
Look at the java-version-25.yml recipe file:
https://github.com/openrewrite/rewrite-migrate-java/blob/main/src/main/resources/META-INF/rewrite/java-version-25.yml#L204
The recipe currently specifies:
recipeList:

  • org.openrewrite.github.SetupJavaUpgradeJavaVersion:
    minimumJavaMajorVersion: 25
  • org.openrewrite.gradle.UpdateGradleWrapper:
    version: 9.1
    addIfMissing: false

What did you expect to see?
I expected the version to be 9.1.0.
According to the official Gradle Releases page, .0 releases require all three digits (there is no 9.1 release, only 9.1.0).
recipeList:

  • org.openrewrite.github.SetupJavaUpgradeJavaVersion:
    minimumJavaMajorVersion: 25
  • org.openrewrite.gradle.UpdateGradleWrapper:
    version: 9.1.0
    addIfMissing: false

What did you see instead?
The version is incorrectly written as 9.1, which will likely fail to resolve the Gradle wrapper distribution.
What is the full stack trace of any errors you encountered?
N/A - This is a configuration bug in the recipe logic.
Are you interested in contributing a fix to OpenRewrite?
no

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions