java - Remove transitive classpath dependency in gradle -
we're running spring-boot app gradle.
in order include spring-boot plugin add dependency:
buildscript { dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.2.release") } }
unfortunately plugin ships dependency org.apache.logging.log4j:log4j-slf4j-impl:2.4.1
which i'd exclude.
already tried adding:
dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.2.release") { exclude group: 'org.apache.logging.log4j' } }
which doesn't work.
also adding:
configurations { classpath.exclude group: 'org.apache.logging.log4j', module: 'log4j-slf4j-impl' }
doesn't have effect.
any hint welcome.
if you're trying exclude
org.apache.logging.log4j:log4j-slf4j-impl:2.4.1
try
dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.2.release") { exclude group: 'org.apache.logging.log4j', module: 'log4j-slf4j-impl' } }
Comments
Post a Comment