Change mockito-all to mockito-core along with the Mockito that replaces PowerMock
MSALChanges a declared mockito-all into mockito-core, as mockito-all is a 1.x-only uber jar with no 3.x release to upgrade to. This runs before the PowerMock dependencies are replaced, so that a module which declared mockito-all is seen to declare mockito-core and does not get it a second time.
org. openrewrite. java. testing. mockito. ChangeMockitoAllToMockitoCoreReplacingPowerMockmod run . --recipe= org. openrewrite. java. testing. mockito. ChangeMockitoAllToMockitoCoreReplacingPowerMockInstall 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.