Set compile option properties instead of calling fork(Map), debug(Map) and define(Map)

MSAL

AbstractOptions.define(Map), CompileOptions.fork(Map), CompileOptions.debug(Map) and GroovyCompileOptions.fork(Map) are deprecated and removed in Gradle 9, where calling them fails. Each map entry becomes a property assignment, and fork and debug also set the flag they turned on. Only Groovy is changed, for named arguments with a compile task as the owner. A map held in a variable is left alone. See the Gradle upgrade guide for more information.

org.openrewrite.gradle.migrate.java.UseCompileOptionsProperties
mod run . --recipe=org.openrewrite.gradle.migrate.java.UseCompileOptionsProperties

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