littlerobots / version-catalog-update-plugin

Gradle plugin for updating a project version catalog
Apache License 2.0
555 stars 22 forks source link

Is it possible for create to write toml file to diffrent file? #133

Closed snijsure closed 8 months ago

snijsure commented 9 months ago

Please describe your feature request, and some context why this would be useful to you and others using the plugin.

I have project where we are trying to migrate to version catalog. So I already have the libs.versions.toml file.

But I want to try and use the command ./gradlew versionCatalogUpdate --create to generate the file, but that fails because libs.versions.toml already exists.

Is it possible to save output of --create to a different file?

hvisser commented 9 months ago

You can change the location of the default and other toml files as described here https://github.com/littlerobots/version-catalog-update-plugin#changing-the-default-version-catalog

If you don't want to change the default, you can setup additional toml files and use the specific update taak for that toml file with the --create flag.