Refactor Gradle project dependencies.

Remove unnecessary 'javax.servlet:javax.servlet-api' provided dependency in 'spring-geode-autoconfigure'.

Remove unnecessary 'org.springframework.boot:spring-boot-starter-tomcat' runtime dependency from 'spring-geode-samples-caching-httpsession'.

Remove unnecessary 'javax.cache:cache-api' and 'org.springframework.shell:spring-shell' runtime dependencies from 'spring-geode-samples-caching-inline'.

Remove unnecessary 'javax.cache:cache-api' and 'org.springframework.shell:spring-shell' runtime dependencies from 'spring-geode-samples-caching-lookaside'.

Remove unnecessary 'javax.cache:cache-api' runtime dependency from 'spring-geode-samples-caching-near'.
This commit is contained in:
John Blum
2019-08-22 22:23:04 -07:00
parent 343a01aead
commit 40f5ddff7a
16 changed files with 27 additions and 56 deletions

View File

@@ -9,8 +9,8 @@ dependencies {
compile "org.apache.geode:geode-lucene:$apacheGeodeVersion"
compile "org.apache.geode:geode-wan:$apacheGeodeVersion"
testCompile "org.assertj:assertj-core"
testCompile "junit:junit"
testCompile "org.assertj:assertj-core"
testCompile "org.mockito:mockito-core"
testCompile "org.projectlombok:lombok"
testCompile "edu.umd.cs.mtc:multithreadedtc"

View File

@@ -5,7 +5,7 @@ description = "Spring Boot Starter for Spring Session using Pivotal GemFire"
dependencies {
compile(project(':spring-gemfire-starter'))
compile project(':spring-gemfire-starter')
compile 'org.springframework.session:spring-session-data-gemfire'

View File

@@ -5,11 +5,9 @@ description = "Spring Boot Test Starter for Pivotal GemFire"
dependencies {
compile("org.springframework.boot:spring-boot-starter-test") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
compile project(':spring-gemfire-starter')
compile(project(':spring-gemfire-starter'));
compile "org.springframework.boot:spring-boot-starter-test"
testCompile "org.springframework.data:spring-data-gemfire-test:$springDataGeodeTestVersion"

View File

@@ -20,7 +20,6 @@ dependencies {
compile "org.springframework.data:spring-data-gemfire"
runtime 'javax.cache:cache-api'
runtime 'org.springframework.shell:spring-shell'
}

View File

@@ -8,8 +8,8 @@ dependencies {
compile project(":spring-geode-actuator")
compile project(":spring-geode-autoconfigure")
testCompile "org.assertj:assertj-core"
testCompile "junit:junit"
testCompile "org.assertj:assertj-core"
testCompile "org.mockito:mockito-core"
testCompile "org.projectlombok:lombok"
testCompile "edu.umd.cs.mtc:multithreadedtc"

View File

@@ -11,8 +11,8 @@ dependencies {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
testCompile "org.assertj:assertj-core"
testCompile "junit:junit"
testCompile "org.assertj:assertj-core"
testCompile "org.mockito:mockito-core"
testCompile "org.projectlombok:lombok"
testCompile "edu.umd.cs.mtc:multithreadedtc"

View File

@@ -15,7 +15,7 @@ dependencies {
optional "org.springframework.boot:spring-boot-configuration-processor"
optional "org.springframework.session:spring-session-data-geode"
provided "javax.servlet:javax.servlet-api"
//provided "javax.servlet:javax.servlet-api"
testCompile project(":apache-geode-extensions")
@@ -44,7 +44,7 @@ dependencies {
testRuntime "org.springframework.shell:spring-shell:$springShellVersion"
// Runtime Test dependency on Spring Cloud Services (SCS) to verify workaround to SCS problem!
// testRuntime("io.pivotal.spring.cloud:spring-cloud-services-starter-service-registry:2.0.3.RELEASE") {
//testRuntime("io.pivotal.spring.cloud:spring-cloud-services-starter-service-registry:2.0.3.RELEASE") {
// exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
// }
//}
}

View File

@@ -9,17 +9,12 @@ description = "Spring Geode Sample demonstrating the use of Spring Boot Actuator
dependencies {
compile project(":spring-geode-starter-actuator")
compile project(":spring-geode-starter-test")
compile ("org.springframework.boot:spring-boot-starter-web") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
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"
}
}
bootJar {

View File

@@ -11,10 +11,10 @@ description = "Spring Geode Sample demonstrating the use of Spring Boot Auto-Con
dependencies {
compile project(":spring-geode-starter")
compile project(":spring-geode-starter-test")
compile "org.assertj:assertj-core"
compile "org.projectlombok:lombok"
compile "org.springframework.data:spring-data-geode-test"
testCompile("org.springframework.boot:spring-boot-starter-test") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"

View File

@@ -16,18 +16,13 @@ dependencies {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
runtime ("org.springframework.boot:spring-boot-starter-tomcat") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
testCompile project(":spring-geode-starter-session")
testCompile project(":spring-geode-starter-test")
testCompile("org.springframework.boot:spring-boot-starter-test") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
testCompile project(":spring-geode-starter-session")
testCompile "org.springframework.data:spring-data-geode-test"
}
bootJar {

View File

@@ -4,12 +4,14 @@ plugins {
apply plugin: 'io.spring.convention.spring-sample-boot'
description = "Spring Geode Sample demonstrating Spring's Cache Abstraction using Apache Geode as the caching provider with Inline Caching."
description = "Spring Geode Sample demonstrating Spring's Cache Abstraction using Apache Geode as the caching provider for Inline Caching."
dependencies {
compile project(":spring-geode-starter")
compile "org.projectlombok:lombok"
compile ("org.springframework.boot:spring-boot-starter-data-jpa") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
@@ -18,21 +20,14 @@ dependencies {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
compile "org.projectlombok:lombok"
runtime "javax.cache:cache-api"
runtime "org.hsqldb:hsqldb"
runtime ("org.springframework.boot:spring-boot-starter-jetty") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
testCompile project(":spring-geode-starter-test")
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

@@ -1,6 +1,6 @@
apply plugin: 'io.spring.convention.spring-sample-boot'
description = "Spring Geode Sample demonstrating Spring's Cache Abstraction using Apache Geode as the caching provider with Look-Aside Caching."
description = "Spring Geode Sample demonstrating Spring's Cache Abstraction using Apache Geode as the caching provider for Look-Aside Caching."
dependencies {
@@ -10,18 +10,11 @@ dependencies {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
runtime "javax.cache:cache-api"
runtime ("org.springframework.boot:spring-boot-starter-jetty") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
testCompile project(":spring-geode-starter-test")
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

@@ -4,7 +4,7 @@ plugins {
apply plugin: 'io.spring.convention.spring-sample-boot'
description = "Spring Geode Sample demonstrating Spring's Cache Abstraction using Apache Geode as the caching provider with Near Caching."
description = "Spring Geode Sample demonstrating Spring's Cache Abstraction using Apache Geode as the caching provider for Near Caching."
dependencies {
@@ -18,18 +18,16 @@ dependencies {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
runtime "javax.cache:cache-api"
runtime("org.springframework.boot:spring-boot-starter-jetty") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
testCompile project (":spring-geode-starter-test")
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

@@ -5,7 +5,7 @@ description = "Spring Boot Starter for Spring Session using Apache Geode"
dependencies {
compile(project(':spring-geode-starter'))
compile project(':spring-geode-starter')
compile 'org.springframework.session:spring-session-data-geode'

View File

@@ -5,12 +5,12 @@ description = "Spring Boot Test Starter for Apache Geode"
dependencies {
compile project(':spring-geode-starter')
compile("org.springframework.boot:spring-boot-starter-test") {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
compile(project(':spring-geode-starter'))
testCompile 'org.springframework.data:spring-data-geode-test'
}

View File

@@ -9,12 +9,10 @@ dependencies {
exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j"
}
compile(project(':spring-geode'))
compile(project(':spring-geode-autoconfigure'))
compile project(':spring-geode')
compile project(':spring-geode-autoconfigure')
runtime 'javax.cache:cache-api'
runtime 'org.springframework.shell:spring-shell'
}