Modernize a Jenkins plugin to the latest recommended versions

MSAL

This recipe is intended to change over time to reflect the recommended tooling and recommended Jenkins baseline.

org.openrewrite.jenkins.ModernizePlugin
mod run . --recipe=org.openrewrite.jenkins.ModernizePlugin

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 Maven parent null:null:4.x
  2. Remove annotation @org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
  3. Migrate to HtmlUnit 3.x
  4. Change Gradle or Maven dependency org.mockito:mockito-inline
  5. Upgrade property's value to version
  6. Remove a Gradle or Maven dependency org.jenkins-ci:symbol-annotation
  7. Add or correct Jenkins plugins BOM
  8. Rename package name javax.inject to jakarta.inject