Alvinn8 / paper-nms-maven-plugin

A maven plugin for using NMS on paper with Mojang mappings.
MIT License
112 stars 9 forks source link

Remap error for java 21 #22

Closed kallmetony closed 11 months ago

kallmetony commented 11 months ago

When i try to compile my plugin with java 21

pom.xml

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.11.0</version>
                <configuration>
                    <source>21</source>
                    <target>21</target>
                </configuration>
            </plugin>

It says:

[ERROR] Failed to execute goal ca.bkaw:paper-nms-maven-plugin:1.4.2:remap (default) on project auroramainplugin: Execution default of goal ca.bkaw:paper-nms-maven-plugin:1.4.2:remap failed: java.lang.RuntimeException: error analyzing A:\Projects\Java\Aurora-Main-Plugin\target\classes\io\github\aaronr92\auroraproject\AuroraPlugin.class from A:\Projects\Java\Aurora-Main-Plugin\target\classes: Unsupported class file major version 65 -> [Help 1]

Error screenshot

image

remap works fine for java 18 though

Alvinn8 commented 11 months ago

Hello, I’m on my phone right now. Could you try the latest snapshot version of the plugin? I updated some dependencies a while ago so that should support the latest java version. I can push that as a release when I come home.

kallmetony commented 11 months ago

sure, i can

Alvinn8 commented 11 months ago

Sorry, it seems I never pushed those changes I was referring to. Try version 1.4.3-SNAPSHOT now and it should work. I'll push that as version 1.4.3 soon.

kallmetony commented 11 months ago

Okay, thank you! Im not at home but will try asap

kallmetony commented 11 months ago

Yeah, it works! Just asked to try it out and now it works fine.

Thank you 😊

Alvinn8 commented 11 months ago

Great, thanks! I've released the changes as version 1.4.3 now.