@@ -17,6 +17,7 @@ plugins {
17
17
id ' me.champeau.gradle.jmh' version ' 0.4.5'
18
18
id ' nebula.optional-base' version ' 3.2.0'
19
19
id ' com.github.hierynomus.license' version ' 0.15.0'
20
+ id ' com.github.spotbugs' version " 4.3.0"
20
21
}
21
22
22
23
allprojects {
@@ -44,19 +45,23 @@ allprojects {
44
45
45
46
subprojects {
46
47
apply plugin : ' com.jfrog.bintray'
47
- apply plugin : ' findbugs '
48
+ apply plugin : ' com.github.spotbugs '
48
49
apply plugin : ' jacoco'
49
50
apply plugin : ' java'
50
51
apply plugin : ' maven-publish'
51
52
apply plugin : ' me.champeau.gradle.jmh'
52
53
apply plugin : ' nebula.optional-base'
53
54
apply plugin : ' com.github.hierynomus.license'
54
55
56
+
55
57
sourceCompatibility = 1.8
56
58
targetCompatibility = 1.8
57
59
58
60
repositories {
59
61
jcenter()
62
+ maven {
63
+ url ' https://plugins.gradle.org/m2/'
64
+ }
60
65
}
61
66
62
67
task sourcesJar(type : Jar , dependsOn : classes) {
@@ -74,15 +79,15 @@ subprojects {
74
79
archives javadocJar
75
80
}
76
81
77
- tasks . withType( FindBugs ) {
82
+ spotbugsMain {
78
83
reports {
79
84
xml. enabled = false
80
85
html. enabled = true
81
86
}
82
87
}
83
88
84
- findbugs {
85
- findbugsJmh . enabled = false
89
+ spotbugs {
90
+ spotbugsJmh . enabled = false
86
91
}
87
92
88
93
test {
@@ -207,9 +212,9 @@ task jacocoRootReport(type: JacocoReport, group: 'Coverage reports') {
207
212
description = ' Generates an aggregate report from all subprojects'
208
213
dependsOn publishedProjects. test, jacocoMerge
209
214
210
- additionalSourceDirs = files(publishedProjects. sourceSets. main. allSource. srcDirs)
211
- sourceDirectories = files(publishedProjects. sourceSets. main. allSource. srcDirs)
212
- classDirectories = files(publishedProjects. sourceSets. main. output)
215
+ getAdditionalSourceDirs() . setFrom( files(publishedProjects. sourceSets. main. allSource. srcDirs) )
216
+ getSourceDirectories() . setFrom( files(publishedProjects. sourceSets. main. allSource. srcDirs) )
217
+ getAdditionalClassDirs() . setFrom( files(publishedProjects. sourceSets. main. output) )
213
218
executionData jacocoMerge. destinationFile
214
219
215
220
reports {
0 commit comments