diff --git a/build.gradle b/build.gradle index ecdce3e..c73bdc2 100644 --- a/build.gradle +++ b/build.gradle @@ -28,11 +28,20 @@ tasks.register('qualityCheck') { dependsOn subprojects.findAll { it.childProjects.isEmpty() }.collect { "${it.path}:qualityCheck" } } +// SpotBugs + FindSecBugs over the test source sets (config/spotbugs/exclude-test.xml). This build has +// no main stage, and the run is short (eleven tasks), so it joins `ci`. +tasks.register('testQualityCheck') { + group = 'verification' + description = 'Runs test-code static analysis for every optional-platform leaf.' + dependsOn subprojects.findAll { it.childProjects.isEmpty() }.collect { "${it.path}:testQualityCheck" } +} + tasks.register('ci') { group = 'verification' description = 'Runs the optional gRPC platform verification surface.' dependsOn tasks.named('checkAll') dependsOn tasks.named('qualityCheck') + dependsOn tasks.named('testQualityCheck') // architectureCheck, not only the direction gate: it also runs verifyNoIgnoredSourcePackages, so // a gRPC source Git would drop fails this build's ci the way it fails the main build's. dependsOn tasks.named('architectureCheck')