Refactor logging dependencies in SBDG Module Gradle build files.

Remove the exclude for 'org.apache.logging.log4j:log4j-to-slf4j'.

Add an exclude for 'org.apache.logging.log4j:log4j-core'.

Resolves gh-42.
This commit is contained in:
John Blum
2019-08-01 23:49:22 -07:00
parent c7963259f1
commit c218795e8d
10 changed files with 68 additions and 79 deletions

View File

@@ -10,15 +10,14 @@ dependencies {
compile project(":spring-geode-starter-actuator")
compile ("org.springframework.boot:spring-boot-starter-web") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
compile "org.springframework.boot:spring-boot-starter-web"
compile("org.springframework.data:spring-data-geode-test") {
exclude group: "org.apache.logging.log4j", module: "log4j-core"
}
compile "org.springframework.data:spring-data-geode-test"
runtime ("org.springframework.boot:spring-boot-starter-jetty") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
runtime "org.springframework.boot:spring-boot-starter-jetty"
runtime "org.springframework.shell:spring-shell"
}

View File

@@ -12,6 +12,10 @@ dependencies {
compile project(":spring-geode-starter")
compile("org.springframework.data:spring-data-geode-test") {
exclude group: "org.apache.logging.log4j", module: "log4j-core"
}
compile "org.assertj:assertj-core"
compile "org.projectlombok:lombok"
compile "org.springframework.data:spring-data-geode-test"

View File

@@ -10,29 +10,21 @@ dependencies {
compile project(":spring-geode-starter")
compile ("org.springframework.boot:spring-boot-starter-data-jpa") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
compile ("org.springframework.boot:spring-boot-starter-web") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
compile "org.projectlombok:lombok"
compile "org.springframework.boot:spring-boot-starter-data-jpa"
compile "org.springframework.boot:spring-boot-starter-web"
runtime "javax.cache:cache-api"
runtime "org.hsqldb:hsqldb"
runtime "org.springframework.boot:spring-boot-starter-jetty"
runtime "org.springframework.shell:spring-shell"
runtime ("org.springframework.boot:spring-boot-starter-jetty") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
testCompile "org.springframework.boot:spring-boot-starter-test"
testCompile("org.springframework.data:spring-data-geode-test") {
exclude group: "org.apache.logging.log4j", module: "log4j-core"
}
testCompile("org.springframework.boot:spring-boot-starter-test") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
testCompile "org.springframework.data:spring-data-geode-test"
}
bootJar {

View File

@@ -6,22 +6,18 @@ dependencies {
compile project(":spring-geode-starter")
compile ("org.springframework.boot:spring-boot-starter-web") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
compile "org.springframework.boot:spring-boot-starter-web"
runtime "javax.cache:cache-api"
runtime "org.springframework.boot:spring-boot-starter-jetty"
runtime "org.springframework.shell:spring-shell"
runtime ("org.springframework.boot:spring-boot-starter-jetty") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
testCompile "org.springframework.boot:spring-boot-starter-test"
testCompile("org.springframework.data:spring-data-geode-test") {
exclude group: "org.apache.logging.log4j", module: "log4j-core"
}
testCompile("org.springframework.boot:spring-boot-starter-test") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
testCompile "org.springframework.data:spring-data-geode-test"
}
bootJar {