littlerobots / version-catalog-update-plugin

Gradle plugin for updating a project version catalog
Apache License 2.0
566 stars 23 forks source link

Non-standard TOML file location #92

Closed michaeloa closed 1 year ago

michaeloa commented 2 years ago

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).

hvisser commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

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 commented 1 year ago

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