This message was deleted.
# community-support
s
This message was deleted.
a
Have you see https://github.com/ljacomet/logging-capabilities? I don't think it's what you're asking for, but it might help.
👍 1
v
Disclaimer: Totally untested But I guess you can do something like
Copy code
configurations.all {
    withDependencies {
        val slf4jApi = find { it.group == "org.slf4j" && it.name == "slf4j-api" }
        slf4jApi?.version?.let {
            if (it.startsWith("1.")) {
                add(project.dependencies.create("org.apache.logging.log4j:log4j-slf4j-impl"))
            } else {
                add(project.dependencies.create("org.apache.logging.log4j:log4j-slf4j2-impl"))
            }
        }
    }
}