Skip to content

Splitties/refreshVersions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

df624c0 ยท Feb 5, 2024
Aug 2, 2022
Jan 30, 2024
Feb 5, 2024
Aug 9, 2022
Feb 5, 2024
Jan 24, 2023
Jan 30, 2024
Nov 15, 2023
Jan 30, 2024
Jan 30, 2024
Nov 13, 2019
May 31, 2022
Aug 6, 2021
Feb 5, 2024
Sep 14, 2022
Oct 2, 2018
Feb 5, 2024
Aug 24, 2023
Aug 22, 2020
Jul 28, 2022
Dec 10, 2020
Nov 10, 2020
May 18, 2021
Feb 5, 2024

Repository files navigation

What is refreshVersions?

refreshVersions helps Gradle users with the tedious manual work usually involved in adding and updating dependencies and their versions.

Documentation

See documentation at https://splitties.github.io/refreshVersions

Setup

// settings.gradle(.kts)
plugins {
    // See https://splitties.github.io/refreshVersions
    id("de.fayard.refreshVersions") version "0.60.5"
}

refreshVersions { // Optional: configure the plugin
    // ...
}

Read the friendly documentation

Usage

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.

In version 0.50.0, support for Gradle's Versions Catalogs was added (see discussion thread here), so a --mode option is now required.

Run it without it to see the complete list and the full description of each mode:

./gradlew refreshVersionsMigrate
Examples (click to expand)

If you want to use only versions.properties and the built-in dependencies notations, run:

./gradlew refreshVersionsMigrate --mode=VersionsPropertiesOnly

To also use a versions catalog for non-built-in dependency notations, run:

./gradlew refreshVersionsMigrate --mode=VersionCatalogAndVersionProperties

Find available updates in versions.properties and the default versions catalog, if any:

./gradlew refreshVersions

Cleanup versions availability comments:

./gradlew refreshVersionsCleanup