Skip to content

When upgrading wrapper use scripts and JAR from target Gradle version #884

@lptr

Description

@lptr

Expected Behavior

When executing gradle wrapper --gradle-version, the gradlew scripts and wrapper.jar should be taken from the version of Gradle given as the parameter (i.e. the target version).

Current Behavior

Currently the scripts and the wrapper.jar is updated, but to the version of Gradle used to execute the wrapper task, not the target version.

Context

Currently if the user wants to upgrade to the latest wrapper scripts and JAR, they need to run ./gradlew wrapper after the wrapper version has been upgraded. This is not convenient. What's worse, most people don't know about this, and thus they use the wrapper scripts and JAR from a previous version of Gradle, which is mostly harmless, but it still violates the rule of least astonishment.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions