i have project in using sl4j log4j. added few new dependencies project, , 1 of these new dependencies added including transitive dependency logback-classic, includes binding sj4j.
i want rid of logback, have no clue of direct dependencies added transitive dependency can exclude it.
in maven know how entire graph of dependencies determine source of transitive dependency, have no clue of how gradle.
does knows how source dependency of transitive dependency gradle?
to show whole dependency tree each class path, use gradle dependencies
. if interested in particular class path, use (say) gradle dependencies --configuration compile
. use -p
option run on sub-project.
to show pulls in particular dependency onto particular class path, , how version conflicts resolved, use (say) gradle dependencyinsight --dependency logback --configuration compile
.
note can exclude dependency whole class path (or multiple). more reliable excluding particular transitive dependency. example:
configurations.all*.exclude module: "logback-classic"
Comments
Post a Comment