Replace javax.security.auth.Policy with java.security.Policy

MSAL

The javax.security.auth.Policy class is not available from Java SE 11 onwards.

org.openrewrite.java.migrate.RemovedPolicy
mod run . --recipe=org.openrewrite.java.migrate.RemovedPolicy

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. Change type javax.security.auth.Policy to java.security.Policy