I'm developing an application (https://github.com/stirante/RuneChanger) and a library (https://github.com/stirante/lol-client-java-api) to that application. In library I use Java-WebSocket, which recently added SLF4J API. In application I have logback as a dependency, which also has SLF4J as a dependency.
While compiling application, I have errors like these:
[ERROR] the unnamed module reads package org.slf4j.spi from both slf4j.api and lol.client.java.api
[ERROR] the unnamed module reads package org.slf4j from both slf4j.api and lol.client.java.api
[ERROR] the unnamed module reads package org.slf4j.helpers from both slf4j.api and lol.client.java.api
[ERROR] the unnamed module reads package org.slf4j.event from both slf4j.api and lol.client.java.api
Full log here: https://travis-ci.org/github/stirante/RuneChanger/builds/693607053
I tried moving the dependencies in library (https://github.com/stirante/lol-client-java-api/commit/f62c31f02ace86d50546af113a94fa37f814fb98), but no luck.
How should I handle this situation?
EDIT: Temporarily I moved org.slf4j
to another package and it works, but it just seems like ugly solution, since the logging probably won't work from this library.