diff --git a/grpc-advanced/grpc-advanced-bootstrap/build.gradle b/grpc-advanced/grpc-advanced-bootstrap/build.gradle index 55ed3e2..4310d02 100644 --- a/grpc-advanced/grpc-advanced-bootstrap/build.gradle +++ b/grpc-advanced/grpc-advanced-bootstrap/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'java-library' +apply plugin: 'ca.platform-module' // The Advanced boundary itself: capability grades, the `ca-skeleton.grpc.advanced.*` feature-flag // contract, the module guard that refuses an unflagged capability, and the per-capability diff --git a/grpc-advanced/grpc-advanced-compat/build.gradle b/grpc-advanced/grpc-advanced-compat/build.gradle index c431427..56617ac 100644 --- a/grpc-advanced/grpc-advanced-compat/build.gradle +++ b/grpc-advanced/grpc-advanced-compat/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'java-library' +apply plugin: 'ca.platform-module' // Compatibility bridges: gRPC-Web, the Servlet HTTP/2 profile, the Spring Integration bridge, the // Reactor adapter, and the Kotlin coroutine/Flow boundary. diff --git a/grpc-advanced/grpc-advanced-diagnostics/build.gradle b/grpc-advanced/grpc-advanced-diagnostics/build.gradle index decae0c..07b2526 100644 --- a/grpc-advanced/grpc-advanced-diagnostics/build.gradle +++ b/grpc-advanced/grpc-advanced-diagnostics/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'java-library' +apply plugin: 'ca.platform-module' // Channelz/CSDS diagnostics for administrators, with the redactor that keeps socket authority, // credentials, certificate material, metadata and payload out of a snapshot, plus the advanced diff --git a/grpc-advanced/grpc-advanced-edition/build.gradle b/grpc-advanced/grpc-advanced-edition/build.gradle index 991aec1..bbfbff5 100644 --- a/grpc-advanced/grpc-advanced-edition/build.gradle +++ b/grpc-advanced/grpc-advanced-edition/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'java-library' +apply plugin: 'ca.platform-module' // Protobuf Edition lanes. Edition 2024 is an opt-in Advanced lane that must produce cross-consumer // compile evidence before anything public moves onto it; Edition 2026 is a watch lane that records diff --git a/grpc-advanced/grpc-advanced-resilience/build.gradle b/grpc-advanced/grpc-advanced-resilience/build.gradle index 12e8c98..787ea9f 100644 --- a/grpc-advanced/grpc-advanced-resilience/build.gradle +++ b/grpc-advanced/grpc-advanced-resilience/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'java-library' +apply plugin: 'ca.platform-module' // Resilience and discovery capabilities that Stable refuses: read-only unary hedging, the custom // name resolver SPI, the custom load balancer SPI, and the proxyless xDS experimental profile. diff --git a/grpc-advanced/grpc-advanced-streaming/build.gradle b/grpc-advanced/grpc-advanced-streaming/build.gradle index 4180427..8ba3cd4 100644 --- a/grpc-advanced/grpc-advanced-streaming/build.gradle +++ b/grpc-advanced/grpc-advanced-streaming/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'java-library' +apply plugin: 'ca.platform-module' // The streaming shapes the Stable plan deliberately excludes: client streaming sessions with // dedup/checkpoint/resume, bidirectional sessions with independent per-direction sequences, and the diff --git a/grpc/grpc-admin/build.gradle b/grpc/grpc-admin/build.gradle index f6d5fa5..707966e 100644 --- a/grpc/grpc-admin/build.gradle +++ b/grpc/grpc-admin/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'java-library' +apply plugin: 'ca.platform-module' // Operational surface: the standard health registry, the reflection exposure policy, the drain // coordinator, and the secret-free runtime policy snapshot an administrator reads. diff --git a/grpc/grpc-client/build.gradle b/grpc/grpc-client/build.gradle index eb3931d..b6b83a7 100644 --- a/grpc/grpc-client/build.gradle +++ b/grpc/grpc-client/build.gradle @@ -1,12 +1,7 @@ -apply plugin: 'java-library' +apply plugin: 'ca.grpc-platform-module' // Client runtime: named channel profiles, channel runtime generations with drain, the typed stub // factory that refuses to hand a raw Channel to application code, and client metadata/credentials. -dependencyManagement { - imports { - mavenBom "io.grpc:grpc-bom:${grpcVersion}" - } -} dependencies { api project(':grpc:grpc-core-api') diff --git a/grpc/grpc-codegen/build.gradle b/grpc/grpc-codegen/build.gradle index 462ce34..0e58993 100644 --- a/grpc/grpc-codegen/build.gradle +++ b/grpc/grpc-codegen/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'java-library' +apply plugin: 'ca.platform-module' // Contract governance: Buf format/lint/breaking policy, the single codegen owner declaration, and // the descriptor/schema-hash release artifact with its consumer-compile gate. diff --git a/grpc/grpc-core-api/build.gradle b/grpc/grpc-core-api/build.gradle index f84028d..caea738 100644 --- a/grpc/grpc-core-api/build.gradle +++ b/grpc/grpc-core-api/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'java-library' +apply plugin: 'ca.platform-module' // The platform's port layer: identifiers, method policy, execution evidence, failure model, // deadline primitives and request context. diff --git a/grpc/grpc-discovery/build.gradle b/grpc/grpc-discovery/build.gradle index 557eec8..7b58bb1 100644 --- a/grpc/grpc-discovery/build.gradle +++ b/grpc/grpc-discovery/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'java-library' +apply plugin: 'ca.platform-module' // Stable discovery: Static/DNS resolvers, pick_first/round_robin load balancing, and the // Kubernetes VIP / headless / mesh routing profiles. Custom resolvers, custom load balancers and diff --git a/grpc/grpc-observability/build.gradle b/grpc/grpc-observability/build.gradle index a56d45f..7b09ff8 100644 --- a/grpc/grpc-observability/build.gradle +++ b/grpc/grpc-observability/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'java-library' +apply plugin: 'ca.platform-module' // Bounded observability: logical RPC vs physical attempt vs stream lifecycle, with a cardinality // policy that refuses payload, raw metadata and any actor/tenant/object/stream/idempotency diff --git a/grpc/grpc-operation-ledger-jpa/build.gradle b/grpc/grpc-operation-ledger-jpa/build.gradle index 748e306..4e6409b 100644 --- a/grpc/grpc-operation-ledger-jpa/build.gradle +++ b/grpc/grpc-operation-ledger-jpa/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'java-library' +apply plugin: 'ca.platform-module' // Durable mutation idempotency: the operation ledger entity, its state machine, the vendor-neutral // repository port and the Spring Data JPA binding, plus the migration that owns the unique diff --git a/grpc/grpc-policy/build.gradle b/grpc/grpc-policy/build.gradle index 5a3154f..cfb7f0e 100644 --- a/grpc/grpc-policy/build.gradle +++ b/grpc/grpc-policy/build.gradle @@ -1,17 +1,8 @@ -apply plugin: 'java-library' +apply plugin: 'ca.grpc-platform-module' // Validation, context propagation, status/rich-error mapping, TLS/credential profiles, deadline // and cancellation, retry ownership and eligibility, idempotency and completion recovery, server // streaming, payload size and compression. -// -// io.grpc versions are NOT managed by the Spring Boot BOM and this repo has no version catalog, so -// the grpc-bom is imported at MODULE scope from the root `ext.grpcVersion` SSOT โ€” the same shape -// `adapter:inbound:grpc` uses, keeping the strict-locking blast radius local. -dependencyManagement { - imports { - mavenBom "io.grpc:grpc-bom:${grpcVersion}" - } -} dependencies { api project(':grpc:grpc-core-api') diff --git a/grpc/grpc-proto-contract/build.gradle b/grpc/grpc-proto-contract/build.gradle index a861009..299583e 100644 --- a/grpc/grpc-proto-contract/build.gradle +++ b/grpc/grpc-proto-contract/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'java-library' +apply plugin: 'ca.platform-module' // Schema source of truth: the `.proto` files plus the rule engine that judges them. // diff --git a/grpc/grpc-server/build.gradle b/grpc/grpc-server/build.gradle index 965ad2b..2dd916f 100644 --- a/grpc/grpc-server/build.gradle +++ b/grpc/grpc-server/build.gradle @@ -1,15 +1,10 @@ -apply plugin: 'java-library' +apply plugin: 'ca.grpc-platform-module' // Server boundary: the ArchUnit-shaped application boundary rules, the typed service adapter SPI, // the interceptor order contract, and the Netty server/executor/admission profiles. // // The Netty profiles are configuration models, not Netty wiring โ€” no netty dependency here. Real // Netty lives in `grpc-testkit`'s certification lane, which is where transport evidence is produced. -dependencyManagement { - imports { - mavenBom "io.grpc:grpc-bom:${grpcVersion}" - } -} dependencies { api project(':grpc:grpc-core-api') diff --git a/grpc/grpc-spring-boot-starter/build.gradle b/grpc/grpc-spring-boot-starter/build.gradle index d1575c7..572af07 100644 --- a/grpc/grpc-spring-boot-starter/build.gradle +++ b/grpc/grpc-spring-boot-starter/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'java-library' +apply plugin: 'ca.platform-module' // The platform's composition boundary: typed properties, auto-configuration and the startup // validator that refuses a deployment whose configuration contradicts a Stable invariant. diff --git a/grpc/grpc-testkit/build.gradle b/grpc/grpc-testkit/build.gradle index 0852528..f9a8ec8 100644 --- a/grpc/grpc-testkit/build.gradle +++ b/grpc/grpc-testkit/build.gradle @@ -1,15 +1,10 @@ -apply plugin: 'java-library' +apply plugin: 'ca.grpc-platform-module' // Certification. The Stable plan splits this across four modules (core / in-process / netty / // fault); this repository already expresses "these two runs are not the same kind of evidence" with // strict test lanes rather than with module boundaries, so the four become four lanes over one // leaf (adaptation design ยง2). A lane that discovers nothing fails, and none of them can serve an // up-to-date result โ€” which is the property the split was protecting. -dependencyManagement { - imports { - mavenBom "io.grpc:grpc-bom:${grpcVersion}" - } -} strictTestLanes { lane('grpcInProcessContractTest') {