openrewrite / rewrite-jenkins

OpenRewrite recipes to continuously modernize Jenkins plugins.
Apache License 2.0
8 stars 8 forks source link

Update `git-changelist-maven-extension` if needed #16

Open basil opened 1 year ago

basil commented 1 year ago

In addition to updating the plugin parent POM to the latest version, the version of git-changelist-maven-extension in .mvn/extensions.xml should be updated to the latest version if necessary. Version 1.6 is the last version that works on Java 8; 1.7 and later require Java 11+.

timtebeek commented 11 months ago

It looks like the closest we have to this might be the Add Gradle Enterprise Maven extension recipe at https://github.com/openrewrite/rewrite/blob/main/rewrite-maven/src/main/java/org/openrewrite/maven/AddGradleEnterpriseMavenExtension.java

While that adds a plugin, that might not be needed here, making this implementation easier by comparison. It does show we're already able to parse and manipulate maven extensions, so there should not be any hurdles to clear for this one.