You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Paperweight, MockBukkit's services get overridden with Paper ones, causing tests to fail.
Reproducible Test
build.gradle:
plugins {
id 'java'
id 'io.papermc.paperweight.userdev' version "1.3.8"
}
dependencies {
paperweightDevelopmentBundle('io.papermc.paper:dev-bundle:1.19.1-R0.1-SNAPSHOT')
// MockBukkit and JUnit
}
If the tests need the paper-server module, then you have to transform the dependency in order to exclude the /META-INF/services/net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer$Provider file. This is feasible, but not very handy.
Now, on the MockBukkit side, it might be better to use reflection instead of Java SPI to set the serializer only if it is not already provided by a service.
Is there an existing issue for this?
Are you using the latest version of MockBukkit?
Minecraft Version
1.19
Describe the bug
When using Paperweight, MockBukkit's services get overridden with Paper ones, causing tests to fail.
Reproducible Test
build.gradle
:settings.gradle
:Test:
Anything else?
No response
The text was updated successfully, but these errors were encountered: