# Org.slf4j/slf4j-simple as a compile-time dependency is incorrect

**URL:** <https://discuss.dgraph.io/t/org-slf4j-slf4j-simple-as-a-compile-time-dependency-is-incorrect/7764>\
**Category:** Dgraph Clients\
**Tags:** dgraph4j, investigate, needs-attention, p1, kind:bug\
**Created:** [February 15, 2020, 9:53am UTC](https://discuss.dgraph.io/t/org-slf4j-slf4j-simple-as-a-compile-time-dependency-is-incorrect/7764 "2020-02-15T09:53:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)\
**Post date:** [February 15, 2020, 9:53am UTC](https://discuss.dgraph.io/t/org-slf4j-slf4j-simple-as-a-compile-time-dependency-is-incorrect/7764/1 "2020-02-15T09:53:14Z")

</div>

_Posted by_ [vxe](https://github.com/vxe):

Hello dgraph maintainers, it seems that slf4j gets propagated to projects which pull in dgraph4j as a maven dependency, see below

> This is a bug in dgraph4j, which lists org.slf4j/slf4j-simple as a compile-time dependency in the default scope. Libraries should not propagate specific slf4j bindings to dependent projects - see the slf4j FAQ.
> 
> Please file a bug report with dgraph4j, telling them to scope their dependency on org.slf4j/slf4j-simple correctly to stop it propagating to other people’s projects. You could link them to this comment.

> <https://github.com/fzakaria/slf4j-timbre/issues/38>
>
> https://github.com/dgraph-io/dgraph4j
> 
> Essentially without this project in dep…s.edn:
> 
> \`\`\`
> SLF4J: Actual binding is of type \[com.github.fzakaria.slf4j.timbre.TimbreLoggerFactory\]
> \`\`\`
> 
> adding it results in
> 
> \`\`\`
> SLF4J: Actual binding is of type \[org.slf4j.impl.SimpleLoggerFactory\]
> \`\`\`
> 
> using these dependencies
> 
> \`\`\`
> io.dgraph/dgraph4j {:mvn/version "2.0.2"}
> com.taoensso/timbre {:mvn/version "4.10.0"}
> com.fzakaria/slf4j-timbre {:mvn/version "0.3.19"}
> org.slf4j/slf4j-api {:mvn/version "1.7.21"}
> \`\`\`
> 
> Are you able to reproduce and/or know the cause of this?

thanks!

---

<div class="post-metadata">

**Author:** ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)\
**Post date:** [July 11, 2020, 1:44am UTC](https://discuss.dgraph.io/t/org-slf4j-slf4j-simple-as-a-compile-time-dependency-is-incorrect/7764/2 "2020-07-11T01:44:20Z")

</div>


