Skip to content

Commit

Permalink
Use log4j bom
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakambda committed Dec 16, 2024
1 parent 5ec889b commit a17c804
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ repositories {
}

dependencies {
implementation(platform(libs.log4j2Bom))

api(libs.slf4j)
implementation(libs.bundles.log4j2)

Expand Down
7 changes: 4 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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" }
Expand Down

0 comments on commit a17c804

Please sign in to comment.