Skip to content

Commit

Permalink
Make slf4j an optional dependency
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ansman committed May 4, 2023
1 parent d5cf9ab commit 4e87005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mockk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ kotlin {
}
val jvmMain by getting {
dependencies {
implementation(Deps.Libs.slfj)
compileOnly(Deps.Libs.slfj)

implementation(Deps.Libs.junit4)
implementation(Deps.Libs.junitJupiter)
Expand Down

0 comments on commit 4e87005

Please sign in to comment.