Skip to content

Commit

Permalink
Ensure the SLF4J ban is being applied
Browse files Browse the repository at this point in the history
Fabric gets skipped 'cause its scuffed
  • Loading branch information
octylFractal committed Jul 9, 2021
1 parent e29126e commit 1f21162
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 0 additions & 8 deletions buildSrc/src/main/kotlin/CommonConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ fun Project.applyCommonConfiguration() {
}
}

configurations.findByName("compileClasspath")?.apply {
resolutionStrategy.componentSelection {
withModule("org.slf4j:slf4j-api") {
reject("No SLF4J allowed on compile classpath")
}
}
}

plugins.withId("java") {
the<JavaPluginExtension>().toolchain {
languageVersion.set(JavaLanguageVersion.of(16))
Expand Down
10 changes: 10 additions & 0 deletions buildSrc/src/main/kotlin/PlatformConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ fun Project.applyPlatformAndCoreConfiguration() {
the<JavaPluginExtension>().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")
}
Expand Down

0 comments on commit 1f21162

Please sign in to comment.