Update dependencies so that logging *actually* works this time

Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
This commit is contained in:
solonovamax
2021-11-22 14:04:45 -05:00
parent 45c682c595
commit 8bfb69baee
3 changed files with 18 additions and 5 deletions

View File

@@ -17,7 +17,12 @@ val purpurURL = "https://ci.pl3x.net/job/Purpur/lastSuccessfulBuild/artifact/fin
dependencies {
shadedApi(project(":common:implementation:base"))
shadedImplementation("org.slf4j:slf4j-log4j12:1.7.32")
shadedApi("org.slf4j:slf4j-api:1.8.0-beta4") {
because("Minecraft 1.17+ includes slf4j 1.8.0-beta4, so we need to shade it for other versions.")
}
shadedImplementation("org.apache.logging.log4j:log4j-slf4j18-impl:2.14.1") {
because("Minecraft 1.17+ includes slf4j 1.8.0-beta4, so we need to shade it for other versions.")
}
compileOnly("io.papermc.paper:paper-api:1.17-R0.1-SNAPSHOT")
shadedImplementation("io.papermc:paperlib:1.0.5")

View File

@@ -24,8 +24,12 @@ val fabricLoader = "0.12.5"
dependencies {
shadedApi(project(":common:implementation:base"))
shadedImplementation("org.slf4j:slf4j-log4j12:1.7.32")
// shadedImplementation("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1")
shadedApi("org.slf4j:slf4j-api:1.8.0-beta4") {
because("Minecraft 1.17+ includes slf4j 1.8.0-beta4, so we need to shade it for other versions.")
}
shadedImplementation("org.apache.logging.log4j:log4j-slf4j18-impl:2.14.1") {
because("Minecraft 1.17+ includes slf4j 1.8.0-beta4, so we need to shade it for other versions.")
}
minecraft("com.mojang:minecraft:$minecraft")
mappings("net.fabricmc:yarn:$minecraft+build.$yarn:v2")

View File

@@ -11,8 +11,12 @@ repositories {
dependencies {
shadedApi(project(":common:implementation:base"))
shadedImplementation("org.slf4j:slf4j-log4j12:1.7.32")
// "shadedImplementation"("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1")
shadedApi("org.slf4j:slf4j-api:1.8.0-beta4") {
because("Minecraft 1.17+ includes slf4j 1.8.0-beta4, so we need to shade it for other versions.")
}
shadedImplementation("org.apache.logging.log4j:log4j-slf4j18-impl:2.14.1") {
because("Minecraft 1.17+ includes slf4j 1.8.0-beta4, so we need to shade it for other versions.")
}
annotationProcessor("org.spongepowered:spongeapi:9.0.0-SNAPSHOT")
shadedImplementation("org.spongepowered:spongeapi:9.0.0-SNAPSHOT")