Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.10-RC1: org.slf4j:slf4j-api missing from runtime classpath #336

Open
davidburstrom opened this issue Sep 25, 2021 · 5 comments
Open

0.10-RC1: org.slf4j:slf4j-api missing from runtime classpath #336

davidburstrom opened this issue Sep 25, 2021 · 5 comments

Comments

@davidburstrom
Copy link

When bumping from 0.9.12 to 0.10-RC1, unit tests in my project starts failing due to missing org.slf4j.LoggerFactory. It would appear that org:slf4j:slf4j-api is not exposed in the runtime dependencies for the reflections library, though it is used internally.

java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
	at org.reflections.Reflections.<clinit>(Reflections.java:96)

It is of course possible to add org:slf4j:slf4j-api to the test runtime classpath in my consuming project as a workaround, but ultimately, this should be dictated by the reflections library.

@ronmamo
Copy link
Owner

ronmamo commented Sep 25, 2021

thanks @davidburstrom , a fix pushed removing optional from slf4j-api dependency. hth, lmk
(ref pr)

@ronmamo
Copy link
Owner

ronmamo commented Oct 4, 2021

fixed on 0.10

@ronmamo ronmamo closed this as completed Oct 4, 2021
@ghost
Copy link

ghost commented Dec 17, 2021

getting this same issue on 0.10.2

@ghost
Copy link

ghost commented Dec 17, 2021

and 0.10.1

@yelkhatib
Copy link

same issue on 0.11

@ronmamo ronmamo reopened this Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants