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

Non-standard TOML file location #92

Closed
michaeloa opened this issue Nov 15, 2022 · 4 comments · Fixed by #96
Closed

Non-standard TOML file location #92

michaeloa opened this issue Nov 15, 2022 · 4 comments · Fixed by #96
Labels
enhancement New feature or request

Comments

@michaeloa
Copy link

It would be really nice to be able to specify the location of the libs.versions.toml, if it is not in the standard location (gradle/...). Alternatively, to pick up the location from settings,xml.

Tried to use the multiple catalog files for this purpose, but that does not work in gradle.kts (also isn't really the right solution to this issue, as the problem would persist that the "base" libs is missing).

@michaeloa michaeloa added the enhancement New feature or request label Nov 15, 2022
@hvisser
Copy link
Contributor

hvisser commented Nov 15, 2022

Can you provide a small repro sample? I'm not fully understanding why working around specifying additional toml files would not work? I think you could configure the task directly (the catalogFile property) with the non-standard location too, but I'd have to try.

@michaeloa
Copy link
Author

Wasn't able to get it working using Kotlin DSL, but maybe I'm doing it wrong?

I'll see if I can extract a simple example.

@hvisser
Copy link
Contributor

hvisser commented Dec 20, 2022

I've documented the kts syntax in the README now and the next version will have an option to change the default toml file location if needed.

@michaeloa
Copy link
Author

Awesome. Thanks, and apologies for not getting back earlier - it slipped my mind in the rush to the holidays.

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

Successfully merging a pull request may close this issue.

2 participants