Ensure the SLF4J ban is being applied

Fabric gets skipped 'cause its scuffed
This commit is contained in:
Octavia Togami 2021-07-09 00:39:55 -07:00
parent e29126ed2f
commit 1f21162bd0
No known key found for this signature in database
GPG Key ID: CC364524D1983C99
2 changed files with 10 additions and 8 deletions

View File

@ -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<JavaPluginExtension>().toolchain {
languageVersion.set(JavaLanguageVersion.of(16))

View File

@ -86,6 +86,16 @@
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")
}