Closed DreierF closed 4 days ago
Thank you for your interest in this plugin.
As indicated in the docs, this plugin does not add dependencies. And for Gradle to detect a capability conflict, it must see more than one dependency with the capability.
So you need to make sure that org.apache.logging.log4j:log4j-jcl
is in the dependency graph.
If I add the following to your test, it passes:
implementation("org.apache.logging.log4j:log4j-jcl:2.19.0")
Actually, I am wrong. Looks like when I worked on the different enforce*
, I left out declaring the substitutions for enforcing Log4J2.
I'll see about adding those, so that the behavior matches what's done for Logback and Slf4J simple.
Replaced by:
When enforcing Log4J2 with a dependency that uses commons-logging the final result does not resolve to
log4j-jcl
. The current behavior also results into runtime errors. Only when manually addinglog4j-jcl
the issue is gone.Might also be that I'm missing something as I'm not really deep into logging.
Failing test: