Modernize a Jenkins plugin to the latest versions supported by Java 8
org.openrewrite.jenkins.ModernizePluginForJava8
This recipe is intended to break down the modernization of very old plugins into distinct steps. It allows modernizing all tooling up to the last versions that supported Java 8. This can then be followed by another recipe that makes the jump to Java 11.
This recipe is composed of more than one recipe. If you want to customize the set of recipes this is composed of, you can find and copy the GitHub source for the recipe from the link above.
Usage
This recipe has no required configuration options. It can be activated by adding a dependency on org.openrewrite.recipe:rewrite-jenkins:0.4.0 in your build file or by running a shell command (in which case no build changes are needed):
---type:specs.openrewrite.org/v1beta/recipename:org.openrewrite.jenkins.ModernizePluginForJava8displayName:Modernize a Jenkins plugin to the latest versions supported by Java 8description: This recipe is intended to break down the modernization of very old plugins into distinct steps. It allows modernizing all tooling up to the last versions that supported Java 8. This can then be followed by another recipe that makes the jump to Java 11.
recipeList: - org.openrewrite.maven.security.UseHttpsForRepositories - org.openrewrite.jenkins.DisableLocalResolutionForParentPom - org.openrewrite.jenkins.AddPluginsBom - org.openrewrite.maven.ChangeParentPom:oldGroupId:org.jenkins-ci.pluginsoldArtifactId:pluginnewVersion:4.51allowVersionDowngrades:false - org.openrewrite.jenkins.UpgradeVersionProperty:key:jenkins.versionminimumVersion:2.346.3 - org.openrewrite.maven.RemoveRedundantDependencyVersions:onlyIfVersionsMatch:false - org.openrewrite.maven.RemoveProperty:propertyName:java.level
See how this recipe works across multiple open-source repositories
The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.
Please contact Moderne for more information about safely running the recipes on your own codebase in a private SaaS.