Skip to content

Preserve existing Gradle wrapper distribution type#6874

Merged
jkschneider merged 1 commit intomainfrom
bmuschko/gradle-wrapper-dist
Mar 5, 2026
Merged

Preserve existing Gradle wrapper distribution type#6874
jkschneider merged 1 commit intomainfrom
bmuschko/gradle-wrapper-dist

Conversation

@bmuschko
Copy link
Contributor

@bmuschko bmuschko commented Mar 4, 2026

Summary

  • When the distribution option is not explicitly set, the UpdateGradleWrapper recipe now derives the distribution type from the existing distributionUrl in gradle-wrapper.properties instead of always defaulting to bin
  • If the existing URL ends with -all.zip, the all distribution is preserved; otherwise defaults to bin
  • Updated @Option description to document the new default behavior

…y specified

When the `distribution` option is not set, the UpdateGradleWrapper recipe
now derives the distribution type from the existing distributionUrl in
gradle-wrapper.properties instead of always defaulting to "bin".
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Mar 4, 2026
@bmuschko bmuschko added bug Something isn't working enhancement New feature or request recipe Requested Recipe and removed bug Something isn't working labels Mar 4, 2026
@jkschneider jkschneider merged commit b66c217 into main Mar 5, 2026
1 check passed
@jkschneider jkschneider deleted the bmuschko/gradle-wrapper-dist branch March 5, 2026 04:11
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request recipe Requested Recipe

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants