Rui Li
10/17/2025, 3:23 AMjava.lang.NoSuchMethodError: 'org.slf4j.spi.LoggingEventBuilder org.slf4j.Logger.atInfo()' on running test, because Gradle automatically adds gradle-api.jar in the class path, and the jar file contains an older version of slf4j API that doesn't have these methods. Is there a way to exclude gradle-api.jar from the class path? The normal way of excluding transient dependency doesn't work, because nothing depends on gradle-api.jar except gradle itself.Vampire
10/17/2025, 7:45 AMVampire
10/17/2025, 7:46 AMgradle-api.jar in the test classpath, that does not make too much sense, can you share an MCVE?