Visitar URL original
Supply a Java 25 compatible ASM dependency for Plexus metadata by jkschneider · Pull Request #1408 · openrewrite/rewrite-migrate-java · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Copyright 2026 the original author or authors.
* <p>
* Licensed under the Moderne Source Available License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* https://docs.moderne.io/licensing/moderne-source-available-license
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.openrewrite.java.migrate;

import org.openrewrite.ExecutionContext;
import org.openrewrite.Recipe;
import org.openrewrite.TreeVisitor;
import org.openrewrite.java.migrate.internal.MavenPluginDependencyCompatibility;

public class UpgradePlexusComponentMetadataForJava25 extends Recipe {
@Override
public String getDisplayName() {
return "Use a Java 25 compatible bytecode reader for Plexus metadata";
}

@Override
public String getDescription() {
return "Use ASM 9.8 with Plexus component metadata 2.2.0, including declarations managed by an external parent. " +
"Preserve newer ASM versions, other plugin versions, and unresolved declarations.";
}

@Override
public TreeVisitor<?, ExecutionContext> getVisitor() {
return MavenPluginDependencyCompatibility.visitor("org.codehaus.plexus", "plexus-component-metadata", "2.2.0",
"org.ow2.asm", "asm", "9.8", true);
}
}
1 change: 1 addition & 0 deletions src/main/resources/META-INF/rewrite/java-version-25.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ recipeList:
groupId: org.apache.maven.plugins
artifactId: maven-failsafe-plugin
newVersion: 3.5.x
- org.openrewrite.java.migrate.UpgradePlexusComponentMetadataForJava25
- org.openrewrite.java.migrate.UpgradeImpsortForJava25
# Plugins whose older lines fail to load on JDK 25 (plexus-utils reflection, ASM without class file version 69).
- org.openrewrite.maven.UpgradePluginVersion:
Expand Down
Loading