Skip to content

Commit 1e0b463

Browse files
JDK 25 build fix
1 parent 48b8c2d commit 1e0b463

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/JavaAnnotationsMojoDescriptorExtractor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ public class JavaAnnotationsMojoDescriptorExtractor extends AbstractLogEnabled i
133133
CLASS_VERSION_TO_JAVA_STRING.put(Opcodes.V21, "21");
134134
CLASS_VERSION_TO_JAVA_STRING.put(Opcodes.V22, "22");
135135
CLASS_VERSION_TO_JAVA_STRING.put(Opcodes.V23, "23");
136+
CLASS_VERSION_TO_JAVA_STRING.put(Opcodes.V24, "24");
137+
CLASS_VERSION_TO_JAVA_STRING.put(Opcodes.V25, "25");
136138
}
137139

138140
@Inject

pom.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,15 @@
102102
maven-plugin-tools-annotations/src/main/java/o/a/m/tools/plugins/extractor/annotations/JavaAnnotationsMojoDescriptorExtractor#CLASS_VERSION_TO_JAVA_STRING
103103
needs to be updated as well -->
104104
<asmVersion>9.8</asmVersion>
105+
<!-- TODO remove with next parent version update -->
106+
<version.maven-invoker-plugin>3.9.1</version.maven-invoker-plugin>
105107
<plexusUtilsVersion>4.0.1</plexusUtilsVersion>
106108
<plexusXmlVersion>3.0.2</plexusXmlVersion>
107109
<reportingApiVersion>4.0.0</reportingApiVersion>
108110
<reportingImplVersion>4.0.0</reportingImplVersion>
109-
<compilerPluginVersion>3.11.0</compilerPluginVersion>
110-
<javadocPluginVersion>3.10.1</javadocPluginVersion>
111-
<enforcerPluginVersion>3.5.0</enforcerPluginVersion>
111+
<compilerPluginVersion>${version.maven-compiler-plugin}</compilerPluginVersion>
112+
<javadocPluginVersion>${version.maven-javadoc-plugin}</javadocPluginVersion>
113+
<enforcerPluginVersion>${version.maven-enforcer-plugin}</enforcerPluginVersion>
112114
<project.build.outputTimestamp>2024-10-22T14:49:07Z</project.build.outputTimestamp>
113115
</properties>
114116

0 commit comments

Comments
 (0)