refreshVersions helps Gradle users with the tedious manual work usually involved in adding and updating dependencies and their versions.
- Start here
- Setup refreshVersions
- Migrate your project
- Find Available Dependencies Updates
- Add Dependencies
- Explore Dependencies Notations
- Schedule the RefreshVersionsBot
- Use the buildSrc
- Changelog
See documentation at https://jmfayard.github.io/refreshVersions
// settings.gradle(.kts)
plugins {
// See https://jmfayard.github.io/refreshVersions
id("de.fayard.refreshVersions") version "0.50.0"
}
refreshVersions { // Optional: configure the plugin
// ...
}
Read the friendly documentation
Make sure the project is correctly set up (see just above).
Migrate project:
The refreshVersionsMigrate
task can help you migrate your project in a few minutes, or less.
It requires a mode
option. You can run it without it to see the complete list and the full description of each mode.
If you want to use only versions.properties
and the built-in dependencies notations, run:
./gradlew refreshVersionsMigrate --mode=VersionsPropertiesOnly
If you want to also use Gradle's Versions Catalogs, run:
./gradlew refreshVersionsMigrate --mode=VersionCatalogAndVersionProperties
Find available updates in versions.properties
:
./gradlew refreshVersions
Cleanup versions availability comments:
./gradlew refreshVersionsCleanup