Skip to content

Commit 1f29940

Browse files
committed
Update file to aggregate tasks to run with one check cmd
1 parent 35e12c1 commit 1f29940

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,19 @@ spotbugs {
124124
ignoreFailures = false
125125
}
126126

127+
// Aggregate SpotBugs task
128+
tasks.register("spotbugs") {
129+
group = "verification"
130+
description = "Run all SpotBugs analysis tasks"
131+
dependsOn("spotbugsMain", "spotbugsTest")
132+
}
127133

128134
// ===== BUILD LIFECYCLE INTEGRATION =====
129135
// The standard 'check' task will now run all quality gates
130136

131137
tasks.named('check') {
132138
dependsOn jacocoTestCoverageVerification
133-
dependsOn tasks.named('spotlessCheck')
134139
dependsOn tasks.named('checkstyleMain')
135-
dependsOn tasks.named('spotbugsMain')
140+
dependsOn tasks.named('checkstyleTest')
141+
dependsOn tasks.named('spotbugs')
136142
}

0 commit comments

Comments
 (0)