Migrate WebJarsResourceResolver to LiteWebJarsResourceResolver

Proprietary

Spring Framework 6.2 deprecates WebJarsResourceResolver, which is backed by org.webjars:webjars-locator-core, in favor of LiteWebJarsResourceResolver, which is backed by org.webjars:webjars-locator-lite. Both the Spring MVC and the WebFlux variant are removed in Spring Framework 7.0. The no-argument constructors of the two types are interchangeable. A file that also references WebJarAssetLocator is left untouched, because LiteWebJarsResourceResolver accepts a WebJarVersionLocator instead and there is no mechanical translation between the two.

io.moderne.java.spring.framework.MigrateWebJarsResourceResolver
mod run . --recipe=io.moderne.java.spring.framework.MigrateWebJarsResourceResolver

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