Adopt library structure for spotbugs

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2024-03-01 11:22:38 +01:00
parent df194ce2fb
commit 6c26873131
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
2 changed files with 1 additions and 2 deletions

View File

@ -459,10 +459,9 @@ spotbugs {
reportLevel = Confidence.valueOf('MEDIUM')
}
tasks.withType(SpotBugsTask).configureEach { task ->
tasks.withType(SpotBugsTask){task ->
String variantNameCap = task.name.replace("spotbugs", "")
String variantName = variantNameCap.substring(0, 1).toLowerCase() + variantNameCap.substring(1)
dependsOn "compile${variantNameCap}Sources"
excludeFilter.set(file("${project.rootDir}/spotbugs-filter.xml"))