Fix outdated Gradle command in Maven Package Registry documentation
What does this MR do and why?
Updates the Gradle installation command from the deprecated gradle install to the current command gradle build.
Also: GitLabDuo highlighted that Install packages specified in your Gradle project. could be misleading. As suggested during the review, I changed it to Assembles and tests this project. to match the output of gradle help --task build:
Description
Assembles and tests this project.
Problem
The current documentation instructs users to run gradle install to download and install Maven packages when using Gradle. However:
- The
gradle installtask does not exist by default in modern Gradle builds - The legacy
mavenplugin provided theinstalltask. It was deprecated in Gradle 6.0 and removed in Gradle 7.0 - Users following the documentation with the current Gradle version get
Task 'install' not founderrors when trying to follow the instructions
Notes
- The
mavenplugin that provided thegradle installcommand was deprecated in gradle 6.0, and removed in gradle 7.0 and later. - gradle 6.0 was released November 8, 2019 - ~6 years ago
- The last gradle 6.x release is 6.9.3, in Oct. 17, 2022 - ~3 years ago
- gradle 7.0 was released April 9, 2021 - ~4 years ago
References
Screenshots or screen recordings
NA
How to set up and validate locally
NA
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Radamanthus Batnag