plugins { id 'ca.spring-library' id 'ca.spring-config' } // Opt-in web library. The packages the servlet production path never reaches: streaming, virtual // thread admission, JSON Patch, CBOR/XML codecs, OpenAPI 3.2, versioning, operation/budget/contract // catalogs. They were inside `adapter:inbound:web`, which every service ships, so every service // carried them. // // Not in the default composition. A service that wants one of them takes this leaf as // `implementation` in its own adapter leaf and calls the types directly; the three switched MVC // capabilities publish their own AutoConfiguration.imports and stay off until their property is set. // // Package root `dev.caskeleton.adapter.inbound.web.advanced` — its own package, the same way // `web-fileserver` owns `web.fileserver`, so no package is split across two jars. dependencies { // MockMvc and the web MVC test auto-configuration: this leaf's tests use them, so it declares // them itself (the spring-library convention adds only spring-boot-starter-test). testImplementation 'org.springframework.boot:spring-boot-starter-webmvc-test' implementation project(':adapter:inbound:web') implementation project(':application-core') // DirectTransactionPort, the read boundary the replay bridge's query use cases open. testImplementation testFixtures(project(':application-core')) implementation project(':shared-contract') implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-validation' implementation libs.springdoc.openapi.starter.webmvc.api // Compile-only on purpose: on the runtime classpath Boot registers an XML/CBOR mapper and an XML // message converter for every request. The deployment that uses a codec adds the backend itself; // `WebRepresentation.available()` reports its absence. compileOnly 'tools.jackson.dataformat:jackson-dataformat-cbor' compileOnly 'tools.jackson.dataformat:jackson-dataformat-xml' testImplementation 'tools.jackson.dataformat:jackson-dataformat-cbor' testImplementation 'tools.jackson.dataformat:jackson-dataformat-xml' } strictTestLanes { // Selects the tagged tests `test` already runs, and fails closed when the tag selects nothing. lane('webAdvancedTest') { tag = 'web-advanced' description = 'Runs every web Advanced capability contract.' } } // The tests run in `test` already; the main stage runs the lane so its fail-closed selection is // proven before release.yml names it, not first there (review 2026-11-01 08-01). tasks.named('mainCheck') { dependsOn 'webAdvancedTest' } // RepresentationBackendScopeTest reads this script to check which scope declares the codec // backends, and a scope change can leave the test runtime classpath as it was. The script is an // input, or a cached `test`/`webAdvancedTest` passes for the old scope (review 2026-11-01 08-02). tasks.withType(Test).configureEach { inputs.file('build.gradle').withPathSensitivity(PathSensitivity.RELATIVE).withPropertyName('buildScript') }