From 068212bfe479395f12809c5c35741574f1d24355 Mon Sep 17 00:00:00 2001 From: Valery Yatsynovich Date: Wed, 25 Jan 2023 19:11:14 +0300 Subject: [PATCH] test: Add Simple SLF4J binding to unit tests runtime 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. ``` --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 798d03182..c4bff9b07 100644 --- a/build.gradle +++ b/build.gradle @@ -25,6 +25,7 @@ java { ext { seleniumVersion = project.property('selenium.version') appiumClientVersion = project.property('appiumClient.version') + slf4jVersion = '2.0.6' } dependencies { @@ -54,7 +55,7 @@ dependencies { implementation 'commons-validator:commons-validator:1.7' implementation 'org.apache.commons:commons-lang3:3.12.0' implementation 'commons-io:commons-io:2.11.0' - implementation 'org.slf4j:slf4j-api:2.0.6' + implementation "org.slf4j:slf4j-api:${slf4jVersion}" testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2' testImplementation 'org.hamcrest:hamcrest:2.2' @@ -67,6 +68,7 @@ dependencies { prefer "${seleniumVersion}" } } + testRuntimeOnly "org.slf4j:slf4j-simple:${slf4jVersion}" } ext {