Remove stale mockito.version property predating the Mockito BOM

MSAL

Spring Boot 2.7 switched to importing org.mockito:mockito-bom:${mockito.version}. A stale mockito.version override predating the Mockito BOM (before 4.3.0) resolves to a non-existent POM, which breaks dependency resolution and silently stalls later upgrades such as Spring Cloud. Only remove the property when it still points at such an older Mockito version, so that deliberate overrides on newer versions are preserved when this recipe is chained into later Spring Boot upgrades.

org.openrewrite.java.spring.boot2.RemoveStaleMockitoVersionProperty
mod run . --recipe=org.openrewrite.java.spring.boot2.RemoveStaleMockitoVersionProperty

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

Recipe list

It runs these recipes, in this order.

  1. Remove Maven project property mockito.version