Skip to content

Commit 0fb2877

Browse files
Replace findbugs with SpotBugs plugin.
1 parent 9f0e4d4 commit 0fb2877

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ buildscript {
3131
repositories {
3232
mavenCentral()
3333
jcenter()
34+
maven {
35+
url "https://plugins.gradle.org/m2/"
36+
}
37+
}
38+
39+
dependencies {
40+
classpath "gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.0.5"
3441
}
3542
}
3643

objectbox-java/build.gradle

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
apply plugin: 'java'
2-
apply plugin: 'findbugs'
2+
apply plugin: "com.github.spotbugs"
33

44
group = 'io.objectbox'
55
version= rootProject.version
66

77
sourceCompatibility = JavaVersion.VERSION_1_8
88
targetCompatibility = JavaVersion.VERSION_1_8
99

10-
tasks.withType(FindBugs) {
11-
reports {
12-
xml.enabled false
13-
html.enabled true
14-
}
15-
ignoreFailures = true
16-
}
17-
1810
dependencies {
1911
compile fileTree(include: ['*.jar'], dir: 'libs')
2012
compile project(':objectbox-java-api')
@@ -23,6 +15,10 @@ dependencies {
2315
compile 'com.google.code.findbugs:jsr305:3.0.2'
2416
}
2517

18+
spotbugs {
19+
ignoreFailures = true
20+
}
21+
2622
javadoc {
2723
// Hide internal API from javadoc artifact.
2824
exclude("**/io/objectbox/Cursor.java")

0 commit comments

Comments
 (0)