diff --git a/build.gradle.kts b/build.gradle.kts index e0a9032..171690a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -13,6 +13,8 @@ repositories { } dependencies { + implementation(platform(libs.log4j2Bom)) + api(libs.slf4j) implementation(libs.bundles.log4j2) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1cc546f..df490c5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] slf4j-version = "2.0.16" -log4j2-version = "2.24.2" +log4j2-version = "2.24.3" log4j2-slf4j-version = "2.24.2" jetbrains-annotations-version = "26.0.1" junitVersion = "5.11.3" @@ -16,8 +16,9 @@ git-version-plugin-version = "3.1.0" [libraries] slf4j = { group = "org.slf4j", name = "slf4j-api", version.ref = "slf4j-version" } -log4j2-core = { group = "org.apache.logging.log4j", name = "log4j-core", version.ref = "log4j2-version" } -log4j2-slf4j = { group = "org.apache.logging.log4j", name = "log4j-slf4j2-impl", version.ref = "log4j2-slf4j-version" } +log4j2Bom = { group = "org.apache.logging.log4j", name = "log4j-bom", version.ref = "log4j2-version"} +log4j2-core = { group = "org.apache.logging.log4j", name = "log4j-core" } +log4j2-slf4j = { group = "org.apache.logging.log4j", name = "log4j-slf4j2-impl" } jetbrainsAnnotations = { group = "org.jetbrains", name = "annotations", version.ref = "jetbrains-annotations-version" } lombok = { group = "org.projectlombok", name = "lombok", version.ref = "lombok-version" } jline = { group = "org.jline", name = "jline-terminal", version.ref = "jline-version" }