From f53b7df1bfba050566cd63777eb886943e32394d Mon Sep 17 00:00:00 2001 From: Thomas Couchoud <1688389+Rakambda@users.noreply.github.com> Date: Mon, 16 Dec 2024 09:13:59 +0100 Subject: [PATCH] Use log4j bom --- build.gradle.kts | 1 + gradle/libs.versions.toml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 46c5628..36c7f14 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,6 +14,7 @@ description = "FTPFetcher" dependencies { implementation(platform(libs.jacksonBom)) + implementation(platform(libs.log4j2Bom)) implementation(libs.sshj) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 13bd449..6015c62 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,7 +1,6 @@ [versions] slf4j-version = "2.0.16" -log4j2-version = "2.24.2" -log4j2-slf4j-version = "2.24.2" +log4j2-version = "2.24.3" sshj-version = "0.39.0" picocli-version = "4.7.6" jackson-version = "2.18.2" @@ -20,8 +19,9 @@ jib-version = "3.4.4" [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" } sshj = { group = "com.hierynomus", name = "sshj", version.ref = "sshj-version" } picocli = { group = "info.picocli", name = "picocli", version.ref = "picocli-version" } jacksonBom = { group = "com.fasterxml.jackson", name = "jackson-bom", version.ref = "jackson-version" }