[GRADLE-3457] Findbugs version cannot be determined when multiple libraries starting with findbugs are on the classpath Created: 23/May/16 Updated: 25/Jan/17 Resolved: 23/May/16 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 2.6 |
Fix Version/s: | 3.0-milestone-1, 3.0-rc-2 |
Type: | Bug | ||
Reporter: | Stefan Wolf | Assignee: | Stefan Wolf |
Resolution: | Fixed | Votes: | 0 |
Description |
See https://groups.google.com/forum/#!topic/gradle-dev/fMXJ6mRTK4c : While moving my codebase to compile with Java8, found out that the Regular Expression that is been used to match the FindBugs Jar version is not strict enough to match what is required (which is findbugs-MAJOR.MINOR.MICRO.jar), and that cause to match other Jars , therefore, the build will fail with build exception: ==============================
The Line of code that has the regular expression is located here: Instead of: I want to fix it by changing it to: This fix will make the regex will match only "findbugs-3.0.0.jar" from a list like this: ["findbugs-annotations-2.0.3.jar", "findbugs-3.0.0.jar", "findbugs-bcel-6.0-SNAPSHOT.jar", "findbugs-jFormatString-3.0.0.jar"] |
Comments |
Comment by Stefan Wolf [ 23/May/16 ] |
Solved by https://github.com/gradle/gradle/pull/642. |