Migrate to JJWT 0.10

Proprietary

Migrates applications using JJWT (io.jsonwebtoken) up to 0.9.x to the latest 0.10 release, which splits the single jjwt jar into jjwt-api, and the runtime-only jjwt-impl and jjwt-jackson, and deprecates signing with a SignatureAlgorithm and a secret (0.10.0). The single jjwt jar also pulled in jackson-databind at compile scope, so code using Jackson without declaring it needs a Jackson dependency. Code that can't be migrated safely is left unchanged and marked with a warning, as are HMAC keys created from a String or byte[], which 0.10 rejects when they're too short or not strictly Base64 encoded.

org.openrewrite.java.security.jjwt.UpgradeToJjwt_0_10
mod run . --recipe=org.openrewrite.java.security.jjwt.UpgradeToJjwt_0_10

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