Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RefreshVersions task recommends upgrades to Gradle pre-release versions #682

Open
1 task done
GeorgEchterling opened this issue Mar 27, 2023 · 1 comment
Open
1 task done

Comments

@GeorgEchterling
Copy link

🐛 Describe the bug

Running ./gradlew refreshVersionsMigrate with an up-to-date version of Gradle results in this message:

The Gradle version used in this project is not up to date.
To update from version 8.0.2, run this command:
./gradlew wrapper --gradle-version 8.1-rc-1

Version 8.0.2 is up-to-date. I don't want to upgrade to pre-release versions. Since I always get this message, I cannot rely on the plugin to notify me about actual Gradle releases in the 8.0.x line.

⚠️ Current behavior

The plugin always recommends upgrading Gradle to the latest (pre-release) version.

✅ Expected behavior

The plugin should only recommend upgrades to Gradle versions that have the same or higher stability level.

  • It should not recommend upgrading from release versions to pre-release versions.
  • It may recommend upgrading from one pre-release to a newer pre-release or release version.

💣 Steps to reproduce

  • Create a project with the Gradle wrapper at version 8.0.2.
  • Add the refreshVersions plugin.
  • Run ./gradlew refreshVersionsMigrate
@GeorgEchterling
Copy link
Author

The plugin does actually recommend the latest release as well as the latest RC:

The Gradle version used in this project is not up to date.
To update from version 7.6.1, run one of these commands:
./gradlew wrapper --gradle-version 8.1.1
./gradlew wrapper --gradle-version 8.2-rc-1

I think recommending both is fine. However, the recommendation message to upgrade from the latest release to the latest RC should be reworded. ("The Gradle version used in this project is not up to date.")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant