Gradle - исключить ведение журнала из Spring
Пример Gradle для исключенияcommons-logging из фреймворков Spring.
build.gradle
compile('org.springframework:spring-webmvc:4.2.4.RELEASE'){
exclude group: 'commons-logging', module: 'commons-logging'
}
Если у вас есть несколько зависимостей Spring, вы должны исключить для каждой
build.gradle
compile('org.springframework:spring-webmvc:4.2.4.RELEASE'){
exclude group: 'commons-logging', module: 'commons-logging'
}
compile('org.springframework:spring-test:4.2.4.RELEASE'){
exclude group: 'commons-logging', module: 'commons-logging'
}
Лучшее решение - исключитьcommons-logging на уровне проекта.
build.gradle
configurations.all {
exclude group: "commons-logging", module: "commons-logging"
}
compile 'org.springframework:spring-webmvc:4.2.4.RELEASE'
compile 'org.springframework:spring-test:4.2.4.RELEASE'