diff --git a/gradle/javaprojects.gradle b/gradle/javaprojects.gradle index c6125a5538..3243532de4 100644 --- a/gradle/javaprojects.gradle +++ b/gradle/javaprojects.gradle @@ -111,6 +111,14 @@ dependencies { [configurations.runtime, configurations.default]*.exclude(module: 'commons-logging') +configurations.all { + resolutionStrategy.eachDependency { DependencyResolveDetails details -> + if (details.requested.group == 'org.slf4j') { + details.useVersion slf4jVersion + } + } +} + [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' test {