Closed njsharpe closed 1 year ago
which is not included in the paper-server dependency, where it should be. I believe this is unintended behavior.
This is 100% intended behavior the paper-server dependency does not include all the other libraries that are bundled with the server jar provided by mojang.
Dependencies are not transitive with the paper-server artifact as that is not the supported way of access internals.
Closing as WAI for now. The only supported way of accessing server internals is with the paperweight gradle plugin.
Expected behavior
A successfully compiled & jarred plugin via gradle.
Observed/Actual behavior
"Error: Cannot access Keyable ... class file for com.mojang.serialization.Keyable not found"
Steps/models to reproduce
gradlew applyPatches
gradlew createMojmapBundlerJar
gradlew createMojmapPaperclipJar
gradlew publishToMavenLocal
~\.m2\repository\io\papermc\paper
. Should find the following folders:paper-api
,paper-server
,paper-mojangapi
. Apply fix topaper-server
, incorrectly named jar filepaper-server-<ver>-<rev>-SNAPSHOT-mojang-mapped.jar
->paper-server-<ver>-<rev>-SNAPSHOT.jar
paper-api
(for external dependencies likebungeecord-chat
).gradlew jar
Code snippet that produced the error:
Errors out when attempting
Registry#getOptional(ResourceLocation)
sinceRegistry<T>
implementsKeyable
, which is not included in thepaper-server
dependency, where it should be. I believe this is unintended behavior.Plugin and Datapack List
N/A
Paper version
[16:27:56 INFO]: Checking version, please wait... [16:27:57 INFO]: This server is running Paper version git-Paper-"9893e2b" (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git: 9893e2b) You are running the latest version Previous version: git-Folia-"ed7a5c5" (MC: 1.19.4)
Other
No response