Pass the cipher to the constructor of DefaultSecDispatcher

MSAL

org.codehaus.plexus:plexus-sec-dispatcher 2.0 has no constructor of DefaultSecDispatcher without arguments, and its _cipher field is final. This passes the cipher to the constructor that takes one instead: the cipher that an anonymous or named subclass assigned to _cipher, or else a new DefaultPlexusCipher, which is what the dispatcher that Maven configures uses. A subclass that assigns _decryptors, or assigns _cipher a value that can't be computed before the constructor runs, is left for a person to change.

org.openrewrite.codehaus.plexus.MigrateDefaultSecDispatcherConstructor
mod run . --recipe=org.openrewrite.codehaus.plexus.MigrateDefaultSecDispatcherConstructor

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