From 3c153fe7e8989f11b94abd41ec5008b72462a83b Mon Sep 17 00:00:00 2001 From: Erik Ogenvik Date: Wed, 6 Nov 2024 17:18:12 +0100 Subject: [PATCH] Specify slf4j-api instead of slf4j-simple. (#934) When used as a library in other components slf4j-api should be used, allowing the component to select the logging backend themselves (for example logback). --- dataframe-jdbc/build.gradle.kts | 2 +- gradle/libs.versions.toml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dataframe-jdbc/build.gradle.kts b/dataframe-jdbc/build.gradle.kts index 0a6ed4842..12dd87107 100644 --- a/dataframe-jdbc/build.gradle.kts +++ b/dataframe-jdbc/build.gradle.kts @@ -28,7 +28,7 @@ dependencies { testImplementation(libs.h2db) testImplementation(libs.mssql) testImplementation(libs.junit) - testImplementation(libs.sl4j) + testImplementation(libs.sl4jsimple) testImplementation(libs.jts) testImplementation(libs.kotestAssertions) { exclude("org.jetbrains.kotlin", "kotlin-stdlib-jdk8") diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index eb00f3cd7..12d3afee3 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -111,7 +111,8 @@ kotlinpoet = { group = "com.squareup", name = "kotlinpoet", version.ref = "kotli swagger = { group = "io.swagger.parser.v3", name = "swagger-parser", version.ref = "openapi" } kotlinLogging = { group = "io.github.oshai", name = "kotlin-logging", version.ref = "kotlinLogging" } -sl4j = { group = "org.slf4j", name = "slf4j-simple", version.ref = "sl4j" } +sl4j = { group = "org.slf4j", name = "slf4j-api", version.ref = "sl4j" } +sl4jsimple = { group = "org.slf4j", name = "slf4j-simple", version.ref = "sl4j" } android-gradle-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "android-gradle-api" } android-gradle = { group = "com.android.tools.build", name = "gradle", version.ref = "android-gradle-api" } kotlin-gradle-plugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin" }