Skip to content

Commit

Permalink
Add log4j dependies for creating log files (#456)
Browse files Browse the repository at this point in the history
Co-authored-by: TW_Renyong Wang <renyong.wang@thoughtworks.com>
  • Loading branch information
NoodleCookie and marblue3wu authored Aug 4, 2022
1 parent a7043dc commit d34258c
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions conf/gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,8 @@ dependencies {
var becauseMsg = "CVE-2021-44228, CVE-2021-45046, CVE-2021-45105, CVE-2021-44832: Log4j vulnerable to remote code execution and other critical security vulnerabilities"
println "> Building with log4j included in default dependencies"
api "org.apache.logging.log4j:log4j-slf4j-impl:${log4j2Version}"

constraints {
api("org.apache.logging.log4j:log4j-api") {
version {
strictly("${log4j2Version}")
prefer("2.17.1")
}
because(becauseMsg)
}

api("org.apache.logging.log4j:log4j-core") {
version {
strictly("${log4j2Version}")
prefer("2.17.1")
}
because(becauseMsg)
}
}
api "org.apache.logging.log4j:log4j-api:${log4j2Version}"
api "org.apache.logging.log4j:log4j-core:${log4j2Version}"

} else {
println "> Building with default dependencies"
Expand Down

0 comments on commit d34258c

Please sign in to comment.