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

Make slf4j an optional dependency #1091

Merged
merged 1 commit into from
May 4, 2023

Conversation

ansman
Copy link
Contributor

@ansman ansman commented May 4, 2023

Currently, mockk pulls in SL4J even though it's an optional dependency. This causes a warning as detailed in #243

With this change, SL4J is changed to a compileOnly dependency which truly makes it optional without having any additional work needed.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Currently, mockk pulls in SL4J even though it's an optional dependency. This causes a warning as detailed in mockk#243

With this change, SL4J is changed to a compileOnly dependency which truly makes it optional without having any additional work needed.
@Raibaz Raibaz merged commit 6cfbc12 into mockk:master May 4, 2023
@Raibaz
Copy link
Collaborator

Raibaz commented May 4, 2023

Thanks for looking into this!

@ansman ansman deleted the fix/make-slf4j-optional branch May 4, 2023 19:34
@ansman
Copy link
Contributor Author

ansman commented May 4, 2023

I think the code that looks for SL4J should also change perhaps. We have several dependencies that pull in SJ4J-api and that causes mockk to think it should use it which leads to the warning in #243
This was previously fixed but it resurfaced in #990

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants