Migrate @AutoConfigureWireMock to @EnableWireMock

Proprietary

Spring Cloud Contract 5.0 removed @AutoConfigureWireMock and the rest of the spring-cloud-contract-wiremock autoconfig package. Rewrite @AutoConfigureWireMock to @EnableWireMock(@ConfigureWireMock(...)) from the official wiremock-spring-boot library, translating port and httpsPort directly. wiremock-spring-boot reads stubs from mappings/ and bodies from __files/ under a single root, so stubs and files locations are translated to the filesUnderClasspath or filesUnderDirectory root that serves the same files, and WireMock's former src/test/resources default is kept when it holds stubs. The old port default of 8080 is preserved so tests that relied on the fixed port continue to reach WireMock. Shapes that cannot be migrated losslessly (multi-location or wildcard stubs/files, stubs outside a mappings/ directory, divergent stubs/files roots, non-literal expressions) are annotated with a TODO(migrate-wiremock) comment.

io.moderne.java.spring.cloud.contract.MigrateAutoConfigureWireMock
mod run . --recipe=io.moderne.java.spring.cloud.contract.MigrateAutoConfigureWireMock

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.