Use Jenkins API plugin instead of libraries
MSALPrefer Jenkins API plugins over bundling libraries for slimmer plugins.
org. openrewrite. jenkins. ReplaceLibrariesWithApiPluginRequired
The first part of a dependency coordinate 'io.jenkins.plugins:ARTIFACT_ID:VERSION'.
The second part of a dependency coordinate 'GROUP_ID:jackson2-api:VERSION'.
An exact version number.
The set of library coordinates replaced by this API Plugin. Separate values with commas.
mod run . --recipe= org. openrewrite. jenkins. ReplaceLibrariesWithApiPlugin \
-P pluginGroupId= io. jenkins. plugins \
-P pluginArtifactId= jackson2-api \
-P pluginVersion=1981. v17df70e84a_a_1 \
-P replaces= 'groupId: org. apache. commons
artifactId: commons-text'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.