-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Plugin section - version.ref is removed and static version is used #119
Comments
In that case there are probably other usages of that version ref that are not updated. Can you confirm that is the case? |
yes, that's correct. So we should different version values for plugins and libraries, or do you have some other suggestions? |
Yes or alternatively you could pin the version if you don't want it to update, but generally it means that not all modules update to the same version if this happens, or at least the dependency version plugin is not seeing the updates if they exist. You could try passing |
Hi @hvisser, Kotlin 1.9.10 to 1.9.20: Detekt 1.23.0 to 1.23.3: I can see all of these artifacts sharing the same version when I find them at https://search.maven.org/ |
This seems to be an common issue, but resolving of versions is handled by the dependency versions plugin, not this plugin. If the dependency versions plugin doesn't "see" the version then the report produced might have a few updated versions and a few old versions. If you experience versions that are not "correct" and you can reproduce these I suggest you file an issue for that plugin. Also make sure you try the refresh flag like I mentioned in the previous comment. It's likely some kind of caching issue. So far I have not been able to reproduce issues like this, probably because they resolve after a while, either when maven central updates or caches expire. At least that is my theory right now. |
Also I'm curious if you are using any keep settings. When you keep dependencies that you don't use as an actual dependency, the dependency version plugin won't know about it. As a result it won't be included in the report it generates. This might cause the version catalog update plugin to see a partial update too, breaking the version group as only one of multiple dependencies are updated. |
I'm not using any keep settings. What you're saying makes sense; I ran the dependency versions plugin independently and I can see that it doesn't detect the latest versions for the aforementioned dependencies. I will try to make a minimal reproducible example and report it there instead. |
Sometimes I noticed that in the plugin section of the catalog, the
version.ref
is removed from a plugin and a static version is used.Here is an example with kotlin:
Then the script suggests this update, instead of updating the
kotlin
version:The text was updated successfully, but these errors were encountered: