Closed PawelLipski closed 2 years ago
I'm kind of hesitant to make any assumptions on what a version number means. It can mean a semantic version, but there are many variations. Gradle itself has a whole system for ordering versions ... There's also nothing in the dependency version plugin that would still report the 1.x version if a 2.x version is out to complicate things further (it only reports the latest version), unless you also configure that plugin to reject 2.x versions (and then you are back to parsing versions again).
The snippet you included basically configures parsing rules for versions, which makes sense for an automated bot, is that something you'd want to use this plugin for too?
There's also nothing in the dependency version plugin that would still report the 1.x version if a 2.x version is out
Whoops okay that's a showstopper ☹️ not insisting then!
which makes sense for an automated bot, is that something you'd want to use this plugin for too?
Yeah, I've basically wrapped this plugin into a CI cron, which checks for updates daily and opens PRs (just as Scala Steward or dependabot would do) ;D
As possible in e.g. Scala Steward: https://github.com/scala-steward-org/scala-steward/blob/main/docs/repo-specific-configuration.md:
For example, given that slf4j 2.0.0 has just been published, it'd be pretty useful to pin at
1.*.*
(although I'm not sure if any1.*.*
updates past the current 1.7.36 are ever going to come out, so I might as well just pin at 1.7.36).