Skip to content

Commit 2c87e7b

Browse files
authored
test: Add Simple SLF4J binding to unit tests runtime (#1848)
This change fixes the following error: ``` SLF4J: No SLF4J providers were found. SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details. ```
1 parent 8ee8500 commit 2c87e7b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ java {
2525
ext {
2626
seleniumVersion = project.property('selenium.version')
2727
appiumClientVersion = project.property('appiumClient.version')
28+
slf4jVersion = '2.0.6'
2829
}
2930

3031
dependencies {
@@ -54,7 +55,7 @@ dependencies {
5455
implementation 'commons-validator:commons-validator:1.7'
5556
implementation 'org.apache.commons:commons-lang3:3.12.0'
5657
implementation 'commons-io:commons-io:2.11.0'
57-
implementation 'org.slf4j:slf4j-api:2.0.6'
58+
implementation "org.slf4j:slf4j-api:${slf4jVersion}"
5859

5960
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
6061
testImplementation 'org.hamcrest:hamcrest:2.2'
@@ -67,6 +68,7 @@ dependencies {
6768
prefer "${seleniumVersion}"
6869
}
6970
}
71+
testRuntimeOnly "org.slf4j:slf4j-simple:${slf4jVersion}"
7072
}
7173

7274
ext {

0 commit comments

Comments
 (0)