Migrate layertools jarmode to tools

Proprietary

The layertools jar mode was deprecated in Spring Boot 3.3 and removed in Spring Boot 4.1. Replace -Djarmode=layertools invocations (commonly found in Dockerfiles and shell scripts) with -Djarmode=tools, which provides equivalent and expanded functionality.

io.moderne.java.spring.boot4.MigrateLayertoolsToTools_4_1
mod run . --recipe=io.moderne.java.spring.boot4.MigrateLayertoolsToTools_4_1

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. Find and replace jarmode=layertools