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
Update TOML files in dependency projects (without declaring dependencies) #65
Comments
Yeah that makes sense, however it's more or less backwards to what this plugin is currently doing (the versions plugin is actually doing all of the dependency resolving, based on what is used in the project). Ideally we'd still want to go through that plugin so that any component selection rules etc are the same, otherwise the plugin would need its own mechanism for detecting updates and rules around how to select those, duplicating the functionality of the versions plugn. |
I think you might be able to do this today, if you use the versions catalog api to add all the libraries in your toml file(s) as a dependency, something like this:
You'd need to do something similar for plugins (by their plugin id) which might be trickier. But once you have those added the update should work as normal. |
Did the workaround I mentioned work for you @GeorgHoffmeyer? If it does I think the plugin does not need more additional support for now. |
Yes it worked for the dependencies. For plugins I have no solution yet. |
I think the easiest way for handling plugins would be add them to your build script in the plugin block with |
I'm going to close this for now, given that this more or less works with a bit of Gradle scripting added |
This can also be done by adding it to a different configuration (not
This allows the DependencyUpdatesTask to pick it up automatically and include the updates in that report. |
We use the version catalog, to share versions across multiple projects. For that we have a dependancy-managment project, which just publishs the toml file to our artifact repository.
I now want to use the version-catalog-update plugin to update the toml file. To do so, I must define all versions in the catalog as a dependencie in my buidl.gradle.
It would be great if I could just use the toml file and update everything that is defined in that file, no matter if it is used as a dependency or not.
The text was updated successfully, but these errors were encountered: