Skip to content

Commit

Permalink
[gradle] adopt new spotbugs syntax
Browse files Browse the repository at this point in the history
  * In case you wonder, the following does not work:
```
reportLevel = com.github.spotbugs.snom.Confidence.LOW
```
  * see: spotbugs/spotbugs-gradle-plugin#972
  • Loading branch information
BenSartor committed Dec 29, 2023
1 parent be54d62 commit f3be03f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
//file:noinspection UnnecessaryQualifiedReference

plugins {
id "java"
Expand Down Expand Up @@ -87,8 +88,8 @@ pmd {
}

spotbugs {
effort = "max"
reportLevel = "low"
effort = com.github.spotbugs.snom.Effort.MAX
reportLevel = com.github.spotbugs.snom.Confidence.valueOf("LOW")
// implemented like the documentation suggests:
// https://github.com/spotbugs/spotbugs-gradle-plugin#readme
//noinspection GroovyAssignabilityCheck,GrFinalVariableAccess
Expand Down

0 comments on commit f3be03f

Please sign in to comment.