How do I set up findbug for Java 8 projects with graduates?

I have a Java 8 project built using graduation 1.12, which is perfect Now I want to use findbugs because I use Java 8 and I have to use findbugs 3 However, the build is suspended in findbugsmain:

:my-module:compileJava UP-TO-DATE
:my-module:processResources UP-TO-DATE
:my-module:classes UP-TO-DATE
> Building 6% > :my-module:findbugsMain

Generated build Gradle contains the following:

apply plugin: 'java'
apply plugin: 'findbugs'

findbugs.toolVersion = '3.0.0'

dependencies {
  compile 'com.google.code.findbugs:annotations:3.0.0'
  …
}

Any idea why the build is suspended? What should I do?

Solution

OK, after all, it seems that findbugs 3 is not suitable for graduation 1 x!

Switch to 2.1 after graduation, all work normally

Thanks Peter niederwieser!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>