Skip to content

Commit 54c8ba7

Browse files
JDK 17: update Spotbugs plugin and annotations.
1 parent 60426d3 commit 54c8ba7

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

build.gradle.kts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
// - sonatypeUsername: Maven Central credential used by Nexus publishing.
66
// - sonatypePassword: Maven Central credential used by Nexus publishing.
77

8+
plugins {
9+
// https://github.com/spotbugs/spotbugs-gradle-plugin/releases
10+
id("com.github.spotbugs") version "5.0.14" apply false
11+
// https://github.com/gradle-nexus/publish-plugin/releases
12+
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
13+
}
14+
815
buildscript {
916
// Typically, only edit those two:
1017
val objectboxVersionNumber = "3.6.1" // without "-SNAPSHOT", e.g. "2.5.0" or "2.4.0-RC"
@@ -48,9 +55,6 @@ buildscript {
4855
dependencies {
4956
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
5057
classpath("org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion")
51-
// https://github.com/spotbugs/spotbugs-gradle-plugin/releases
52-
classpath("gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.7.0")
53-
classpath("io.github.gradle-nexus:publish-plugin:1.1.0")
5458
}
5559
}
5660

objectbox-java/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ dependencies {
2020
api 'com.google.code.findbugs:jsr305:3.0.2'
2121

2222
// https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md
23-
compileOnly 'com.github.spotbugs:spotbugs-annotations:4.2.2'
23+
compileOnly 'com.github.spotbugs:spotbugs-annotations:4.7.3'
2424
}
2525

2626
spotbugs {
2727
ignoreFailures = true
28+
showStackTraces = true
2829
excludeFilter = file("spotbugs-exclude.xml")
2930
}
3031

0 commit comments

Comments
 (0)