Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add log4j dependencies for creating log files #456

Merged
merged 1 commit into from
Aug 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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