Bundler jar libraries include API twice
theomega24 opened this issue · comments
The bundler jar libraries seem to include Paper-API and the forks API, which means that none of the forks API is included in the final product.
This means that I end up running Purpur-Server with Paper-API, which causes issues. https://pastebin.com/MPJtyqJM (api patch).
Oh and here is a jar that causes the issue: https://drive.google.com/file/d/1cMCuPISYiZY8qlSroW-dmNvZtKnP9zFs/view?usp=sharing
The paper-mojangapi
artifact ist transitively depending on the paper-api
and hence it is included in the bundler.
You can exclude the transitive dependency (as the fork's api delivers the classes needed) through something like
implementation("io.papermc.paper:paper-mojangapi:1.18-R0.1-SNAPSHOT") {
exclude("io.papermc.paper", "paper-api")
}
I expect this to be the solution, however this could obviously also be implemented as a check somewhere in the patcher, so this issue might need more input.
This is probably the case, I’ll definitely try this when I get home. Thanks!
Yea I validated this on a local fork, the paper-api
is no longer included in the bundler after excluding it from the mojangapi
👍
I'll close the issue for now, if problems arise feel free to comment and we can re-open and discuss further :)