plugins { id 'ca.architecture' // Without it every gRPC leaf's jar is versioned 0.0.1-SNAPSHOT, because JavaConventionsPlugin // falls back to that when the root has no ReleaseProvenanceExtension — so one commit produced // two artifact sets under two different version schemes, and only one of them could be traced // back to a revision. id 'ca.release-provenance' } ext.sourceRevision = providers.gradleProperty('gitRevision') .orElse(providers.environmentVariable('GIT_SHA')) .orElse(providers.environmentVariable('GITHUB_SHA')) .getOrElse('unknown') tasks.register('resolveAndLockAll') { group = 'build setup' description = 'Regenerates dependency locks for every optional gRPC leaf (requires --write-locks).' dependsOn subprojects.findAll { it.childProjects.isEmpty() }.collect { "${it.path}:resolveAndLockAll" } } tasks.register('checkAll') { group = 'verification' description = 'Runs every gRPC optional-platform leaf check.' dependsOn subprojects.findAll { it.childProjects.isEmpty() }.collect { "${it.path}:check" } } tasks.register('qualityCheck') { group = 'verification' description = 'Runs production-bytecode static analysis for every optional-platform leaf.' dependsOn subprojects.findAll { it.childProjects.isEmpty() }.collect { "${it.path}:qualityCheck" } } tasks.register('ci') { group = 'verification' description = 'Runs the optional gRPC platform verification surface.' dependsOn tasks.named('checkAll') dependsOn tasks.named('qualityCheck') // 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') } // A strict integration lane that no workflow invokes is not coverage; it is a file that looks like // coverage. `grpc-operation-ledger-jpa` declares a Testcontainers PostgreSQL lane that certifies the // atomic `INSERT ... ON CONFLICT DO NOTHING` claim the whole durable-idempotency contract rests on, // and until this aggregate existed `ci` reached `checkAll`, `qualityCheck` and the dependency // verifier only — none of which runs a lane whose category is INTEGRATION. // // Kept out of `ci`: every lane here starts a container, and `ci` is the per-PR gate for this build. // The caller is integration-main.yml, the stage that owns container-backed lanes. tasks.register('integrationCheck') { group = 'verification' description = 'Runs every optional-platform leaf integration test lane. Needs a container runtime.' dependsOn subprojects.findAll { it.childProjects.isEmpty() }.collect { "${it.path}:integrationTestLaneCheck" } }