PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
9.73k stars 2.27k forks source link

Exception during remap #10982

Closed Lorenzo0111 closed 3 months ago

Lorenzo0111 commented 3 months ago

Expected behavior

Plugin should work normally

Observed/Actual behavior

Received this exception while loading my plugin jar. I've attached it below RocketJoin-bukkit-2.4.2.zip

Steps/models to reproduce

Just load my plugin

Plugin and Datapack List

RocketJoin

Paper version

[15:38:53 INFO]: This server is running Paper version 1.21-37-master@dd49fba (2024-06-24T02:08:49Z) (Implementing API version 1.21-R0.1-SNAPSHOT) You are running the latest version Previous version: 1.21-28-812701d (MC: 1.21)

Other

No response

Lorenzo0111 commented 3 months ago

I've pushed my code here

electronicboy commented 3 months ago

your build setup is producing jars which have duplicate entries, the classes listed in that error are inside of the jar more than once

https://github.com/Lorenzo0111/RocketJoin/blob/dev/update/bukkit/build.gradle#L58 - is the issue, you shouldn't be depending out the output of shadowJar that way, shadow won't be able to handle duplicate class defs when done that way

lynxplay commented 3 months ago

Feel free to head to our discord if you have more questions.