refreshVersions icon indicating copy to clipboard operation
refreshVersions copied to clipboard

Support - Declaring a version catalog

Open hanrw opened this issue 2 years ago • 4 comments

I have a Declaring a version catalog below

dependencyResolutionManagement {
    versionCatalogs {
        create("extraLibs") {
            from(files("gradle/extra.libs.versions.toml"))
        }
    }
}

gradle refreshVersions may update the version under gradle/extra.libs.versions.toml as well.

hanrw avatar Apr 28 '23 07:04 hanrw

Hello, sorry for the silence all the time. Do you still need the feature? If so, please let me know, I have several API design questions as Gradle APIs don't allow us to recover the file from version catalogs, which mean we would need to add a middleman.

LouisCAD avatar Aug 22 '23 08:08 LouisCAD

Thanks for checking this issue. I would say it's nice to have. I had rollbacked from using different versions.toml files.

hanrw avatar Aug 29 '23 10:08 hanrw

Hello, I came across this issue and it is exactly what we need, we cannot use a single default libs.versions.toml because of some internal reasons and we have separate versions catalogs. It would be really great if we can specify additional catalogs to the refreshVersions configuration.

vnickolov avatar Jun 05 '24 11:06 vnickolov

i have a catalog project structure looks like below, would like to if can apply refreshVersions for each sub projects refreshVersions should able to update common and testing modules lib versions

catalog
 - settings.gradle.kts
  - include(":common")
  - include(":testing")
 - common
   - gradle/libs.versions.toml
 - testing
   - gradle/libs.versions.toml

hanrw avatar Jun 14 '24 10:06 hanrw