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
Blacklist dependencies/versions #9
Comments
That would come down to configuring the version updates plugin correctly IMHO, one way to approach that is by taking the version in the version catalog and require that version for dependency updates. An example of that is in this PR Would that be sufficient for what you are looking for? The plugin could maybe do something to configure the version updates plugin to "pin" versions like that, but I'm not sure if that would improve things. Another interesting question would be how the plugin could still communicate an update is available...for example by logging a message or adding a comment to the toml file? |
Thanks for the quick answer. What you mentioned is exactly the reason why I did not jump straight into the code, I did not know how to notify back about the "ignored" version. The PR you linked is what we discussed on the team as an alternative, however, we also found nice the concept of "blacklist" that can be found in this other similar plugin: https://github.com/patrikerdes/gradle-use-latest-versions-plugin. Anyway, to answer your question. Yes, that solution works for us, so, feel free to close this issue, and thanks a lot for taking the time to find an example about how to achieve this without forking your plugin. BTW nice work, we discovered this plugin a few weeks ago and we are loving it ❤️ |
Thanks ❤️ I'll leave this open, I think some mechanism of saying "hey, I'll upgrade this myself" would be useful, if the plugin also tells you that an update is available. That could be a simple list of libraries and plugins you want to pin to the version specified in the catalog for example. |
Just in case someone gets here trying to solve this same problem. This is the code I ended up writing to ignore the dependencies defined on the
|
I just stumbled upon a similar problem where i would like to specify a version that should not be updated automatically. I would prefer denoting this in the .toml file directly using the strictly keyword: https://docs.gradle.org/current/userguide/rich_versions.html It seems like this is not supported by this plugin. Example:
results in the following error: The gradle build task itself works just fine. |
@sjthiessen This has actually been fixed on main, see issue #17. In addition that fix will also tell you if there's an update available so that you can still keep an eye on new versions. The pinning of dependencies (this issue) is also in the works, I'm planning to release that this week 🤞 |
For anyone who wants to try, the |
Oh, I missed that! Thanks for the quick response! |
Released in 0.3.0 |
Hi! I would like to know if you are thinking on adding blacklist for certain dependencies?
Ie I may want to update manually compose and kotlin as I know they have a certain relationship, but update the rest automatically.
I would be happy to work on this if you think it would be a nice addition to the plugin
The text was updated successfully, but these errors were encountered: