refreshVersions helps Gradle users with the tedious manual work usually involved in adding and updating dependencies and their versions.
// settings.gradle(.kts)
plugins {
// See https://jmfayard.github.io/refreshVersions
id("de.fayard.refreshVersions") version "0.23.0"
}
refreshVersions { // Optional: configure the plugin
// ...
}
Migrate project:
./gradlew refreshVersionsMigrate
Find available updates in versions.properties
:
./gradlew refreshVersions
Cleanup versions availability comments:
./gradlew refreshVersionsCleanup
安装插件 文件添加内容:settings.gradle.kts (project) plugins { // See https://jmfayard.github.io/refreshVersions id("de.fayard.refreshVersions") version "0.23.0" } // ⬇ 参考层级 rootProject.name = "..." 点击