refactor: gradle config of log4j version (#1595)

pull/1604/head
guqing 2021-12-12 22:50:56 +08:00 committed by GitHub
parent 90216d12c3
commit f2395b7b5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 5 deletions

View File

@ -33,6 +33,15 @@ configurations {
}
}
configurations.all {
// Aligning log4j dependency versions to 2.15.0
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.apache.logging.log4j') {
details.useVersion '2.15.0'
}
}
}
bootJar {
manifest {
attributes "Implementation-Title": "Halo Application",
@ -96,14 +105,9 @@ ext {
huaweiObsVersion = "3.19.7"
templateInheritanceVersion = "0.4.RELEASE"
jsoupVersion = "1.13.1"
log4jVersion = "2.15.0"
}
dependencies {
// Aligning log4j dependency versions to 2.15.0
implementation enforcedPlatform("org.apache.logging.log4j:log4j-core:$log4jVersion")
implementation enforcedPlatform("org.apache.logging.log4j:log4j-api:$log4jVersion")
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
implementation "org.springframework.boot:spring-boot-starter-web"