13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+
16
17
import static org.gradle.util.CollectionUtils.single
17
18
18
19
apply plugin : ' eclipse'
@@ -27,12 +28,14 @@ buildscript {
27
28
maven { url ' https://oss.sonatype.org/content/repositories/snapshots' }
28
29
jcenter()
29
30
mavenCentral()
31
+ maven { url " https://plugins.gradle.org/m2/" }
30
32
mavenLocal()
31
33
}
32
34
dependencies {
33
35
classpath ' org.kordamp.gradle:clirr-gradle-plugin:0.2.2'
34
36
classpath ' com.netflix.nebula:gradle-extra-configurations-plugin:1.12.+'
35
37
classpath ' com.bmuschko:gradle-nexus-plugin:2.2'
38
+ classpath " gradle.plugin.com.github.spotbugs:gradlePlugin:1.6.0"
36
39
}
37
40
}
38
41
@@ -165,7 +168,7 @@ def getGitVersion() {
165
168
166
169
configure(subprojects. findAll { it. name != ' util' && it. name != ' mongo-java-driver' }) {
167
170
apply plugin : ' checkstyle'
168
- apply plugin : ' findbugs '
171
+ apply plugin : " com.github.spotbugs "
169
172
apply plugin : ' jacoco'
170
173
apply plugin : ' groovy'
171
174
apply plugin : ' codenarc'
@@ -266,18 +269,18 @@ configure(subprojects.findAll { it.name != 'util' && it.name != 'mongo-java-driv
266
269
configProperties. checkstyleConfigDir = configDir
267
270
}
268
271
269
- findbugs {
272
+ spotbugs {
270
273
excludeFilter = new File (configDir, ' findbugs-exclude.xml' )
271
274
sourceSets = [sourceSets. main]
272
- toolVersion = ' 3.0.1 '
275
+ toolVersion = ' 3.1.0 '
273
276
}
274
277
275
278
codenarc {
276
279
toolVersion = ' 0.24'
277
280
reportFormat = project. buildingWith(' xmlReports.enabled' ) ? ' xml' : ' html'
278
281
}
279
282
280
- tasks. withType(FindBugs ) {
283
+ tasks. withType(com.github.spotbugs.SpotBugsTask ) {
281
284
reports {
282
285
xml. enabled = project. buildingWith(' xmlReports.enabled' )
283
286
html. enabled = ! project. buildingWith(' xmlReports.enabled' )
0 commit comments