This commit is contained in:
Erik C. Thauvin 2020-03-25 00:20:15 -07:00
parent 68ddcd1ccc
commit a435f0be49
5 changed files with 12 additions and 10 deletions

View file

@ -13,8 +13,6 @@ plugins {
id 'pmd'
}
import com.github.spotbugs.snom.SpotBugsTask
defaultTasks 'deploy'
final def packageName = 'net.thauvin.erik.mobibot'
@ -88,7 +86,7 @@ spotbugs {
toolVersion.set("$versions.spotbugs")
}
tasks.withType(SpotBugsTask) {
tasks.withType(com.github.spotbugs.snom.SpotBugsTask) {
reports {
xml.enabled = false
html.enabled = true
@ -108,6 +106,10 @@ detekt {
baseline = file("detekt-baseline.xml")
}
tasks.withType(io.gitlab.arturbosch.detekt.Detekt) {
exclude("**/**.java")
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.annotationProcessorGeneratedSourcesDirectory = file("${projectDir}/src/generated/java")