我有一个对同级模块具有编译时间依赖性的gradle模块。包含来自兄弟模块gradle模块的FindBugs分析所需的文件
dependencies {
compile project(':sibling-module')
}
虽然运行的版本,FindBugs的似乎无法找到的依赖,所以我收到以下消息:
The following classes needed for analysis were missing:
com.example.siblingmodule.classname
什么我需要做的,包括这些文件,这样可以了findBUGs评估他们?我正在使用FindBugs 3.0.1和gradle 3.5。
不幸的是,将兄弟模块添加到源代码集合findbugs {sourceSets = [sourceSets.main,sourceSets.test,project(':sibling-module').sourceSets.main]}不起作用,也没有添加兄弟模块作为testCompile依赖关系。 – BamaPookie
也没有增加findbugsMain类路径:findbugsMain classpath + = project(':sibling-module')。sourceSets.main.allSource }'findbugsMain { } – BamaPookie