我试图在gradle中使用findbugs插件,但它无法正常工作。这是片段gradle配置。
apply plugin: 'findbugs'
dependencies {
findbugsPlugins fileTree(dir: "$toolsHome/findbugs", include: '*.jar')
}
findbugs {
toolVersion = "3.0.1"
sourceSets = [sourceSets.main]
ignoreFailures = true
reportsDir = file("$project.buildDir/findbugsReports")
effort = "max"
reportLevel = "low"
excludeBugsFilter = file(toolsHome + File.separator + "findbugs" + File.separator + "findbugs-exclude.xml")
}
堆栈跟踪: Gradle Stacktrace
有人能指出我的配置有什么问题吗?