Gradle internal slf4j causing conflict

(Leo Jiapei Lin) #1

I am using slf4j in my project, when building the project, gradle is seeing there are two bindings, one of which is from the internal gradle core jar, another one is from my dependency list. How can I fix this error?

compile 'org.slf4j:slf4j-simple:1.7.14'
compile 'org.slf4j:slf4j-api:1.7.14'

If I don’t include my own slf4j dependencies, gradle won’t build my code, and treat any logging code as invalid symbols because it simply can’t find the library for them.

(Sterling Greene) #2

Are you building a Gradle plugin?

(Leo Jiapei Lin) #3

I am not building a plugin, but I am using one.

(Sterling Greene) #4

Is that stacktrace coming from when you build your code, run your application or run tests?

(Leo Jiapei Lin) #5

When I am running the gradle build. I raised the issue on the plugin’s github repo, looks like it could be a plugin issue. I will report back if it is indeed a gradle issue. Thanks for the help.

(Leo Jiapei Lin) #6

Looks like it was the plugin’s issue. It was resolved there. Check this github page if interested Thanks again.