Upgrade to Gradle 6.6 and use SpotBugs.
As a result, at least one real bug was fixed! Nice.
This commit is contained in:
13
build.gradle
13
build.gradle
@@ -9,9 +9,12 @@ buildscript {
|
||||
|
||||
plugins {
|
||||
id 'java'
|
||||
id "com.github.spotbugs" version "4.2.4" apply false
|
||||
}
|
||||
|
||||
allprojects {
|
||||
apply plugin: "com.github.spotbugs"
|
||||
|
||||
group 'com.velocitypowered'
|
||||
version '1.1.0-SNAPSHOT'
|
||||
|
||||
@@ -70,4 +73,14 @@ allprojects {
|
||||
junitXml.enabled = true
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(com.github.spotbugs.snom.SpotBugsTask) {
|
||||
reports {
|
||||
html {
|
||||
enabled = true
|
||||
destination = file("$buildDir/reports/spotbugs/main/spotbugs.html")
|
||||
stylesheet = 'fancy-hist.xsl'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user