Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support - Declaring a version catalog #684

Open
hanrw opened this issue Apr 28, 2023 · 4 comments
Open

Support - Declaring a version catalog #684

hanrw opened this issue Apr 28, 2023 · 4 comments

Comments

@hanrw
Copy link

hanrw commented Apr 28, 2023

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.

@LouisCAD
Copy link
Member

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.

@hanrw
Copy link
Author

hanrw commented Aug 29, 2023

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

@vnickolov
Copy link

vnickolov commented Jun 5, 2024

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.

@hanrw
Copy link
Author

hanrw commented Jun 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants