Set Maven project packaging
Apache 2.0Sets the packaging type of Maven projects. Either adds the packaging tag if it is missing or changes its context if present.
org. openrewrite. maven. ChangePackagingRequired
The groupId of the project whose packaging should be changed. Accepts glob patterns.
The artifactId of the project whose packaging should be changed. Accepts glob patterns.
The type of packaging to set. If null specified the packaging tag will be removed
Optional
The old packaging type. If provided, will only change if the current packaging matches
mod run . --recipe= org. openrewrite. maven. ChangePackaging \
-P groupId= 'org. openrewrite. *' \
-P artifactId= 'rewrite-*' \
-P packaging= jarInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.