Skip to content

Commit

Permalink
fix: SpotBugs report is not handled as task output
Browse files Browse the repository at this point in the history
Signed-off-by: Kengo TODA <skypencil@gmail.com>
  • Loading branch information
KengoTODA committed Jan 8, 2024
1 parent ab5205a commit ee017c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/com/github/spotbugs/snom/SpotBugsTask.kt
Expand Up @@ -311,6 +311,8 @@ abstract class SpotBugsTask : DefaultTask(), VerificationTask {
"text" -> objects.newInstance(SpotBugsTextReport::class.java, name, objects, this)
"sarif" -> objects.newInstance(SpotBugsSarifReport::class.java, name, objects, this)
else -> throw InvalidUserDataException("$name is invalid as the report name")
}.also {
(outputs as org.gradle.api.tasks.TaskOutputs).file(it.outputLocation)
}
}
description = "Run SpotBugs analysis."
Expand Down

0 comments on commit ee017c3

Please sign in to comment.