-
Notifications
You must be signed in to change notification settings - Fork 31
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
java.util.regex.PatternSyntaxException
when dependencyUpdates/report.json has a version range
#25
Comments
I'm confused, because when I add a version range in my |
Yes, it's not simply reproducible like that. I tried to debug Here's something to consider: is there anything that restricts valid maven versions, groupIds, or artifactIds to strings that do not need to be regex quoted? I could find no documentation on what characters are valid in these values. But it might be a good idea to quote values going into these regexes in https://github.com/patrikerdes/gradle-use-latest-versions-plugin/blob/master/src/main/groovy/se/patrikerdes/DependencyUpdate.groovy regardless of my specific version range problem. |
Does this look like what you had in mind? #26 |
Precisely. Thanks! |
It's merged. |
The fix is now available in release 0.2.11. |
build/dependencyUpdates/report.json
contains a node like this:The version being a range results in this (I pruned the extremely long Gradle stacktrace to the relevant frames):
I am new to both your plugin and the upstream
gradle-versions-plugin
so I'm not sure where the bug lies; should the report never contain a range there?Unfortunately I've not been able to make a simple reproducing project; I haven't been able to convince
gradle-versions-plugin
to produce such a report.The text was updated successfully, but these errors were encountered: