From 1f21162bd056d16d69dc7a0be4cf4b7d315ff0e5 Mon Sep 17 00:00:00 2001 From: Octavia Togami Date: Fri, 9 Jul 2021 00:39:55 -0700 Subject: [PATCH] Ensure the SLF4J ban is being applied Fabric gets skipped 'cause its scuffed --- buildSrc/src/main/kotlin/CommonConfig.kt | 8 -------- buildSrc/src/main/kotlin/PlatformConfig.kt | 10 ++++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/buildSrc/src/main/kotlin/CommonConfig.kt b/buildSrc/src/main/kotlin/CommonConfig.kt index 063154d61..8701c8716 100644 --- a/buildSrc/src/main/kotlin/CommonConfig.kt +++ b/buildSrc/src/main/kotlin/CommonConfig.kt @@ -24,14 +24,6 @@ } } - configurations.findByName("compileClasspath")?.apply { - resolutionStrategy.componentSelection { - withModule("org.slf4j:slf4j-api") { - reject("No SLF4J allowed on compile classpath") - } - } - } - plugins.withId("java") { the().toolchain { languageVersion.set(JavaLanguageVersion.of(16)) diff --git a/buildSrc/src/main/kotlin/PlatformConfig.kt b/buildSrc/src/main/kotlin/PlatformConfig.kt index 15e6991b3..8c71749a8 100644 --- a/buildSrc/src/main/kotlin/PlatformConfig.kt +++ b/buildSrc/src/main/kotlin/PlatformConfig.kt @@ -86,6 +86,16 @@ the().withSourcesJar() } + if (name != "worldedit-fabric") { + configurations["compileClasspath"].apply { + resolutionStrategy.componentSelection { + withModule("org.slf4j:slf4j-api") { + reject("No SLF4J allowed on compile classpath") + } + } + } + } + tasks.named("check").configure { dependsOn("checkstyleMain", "checkstyleTest") }