Alvinn8 / paper-nms-maven-plugin

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

Remap error for java 21 #22

Closed kallmetony closed 1 year ago

kallmetony commented 1 year 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 1 year 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 1 year ago

sure, i can

Alvinn8 commented 1 year 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 1 year ago

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

kallmetony commented 1 year ago

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

Thank you 😊

Alvinn8 commented 1 year ago

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