Remove unnecessary testImplementation dependencies (e.g. JUnit, Mockito, etc) from Project (module) Gradle build files.

The testImplementation dependencies have been declared in the testDependencies project extension defined in the DependencySetPlugin.

The testDependencies have been (implicitly) added to the Project's testImplementation dependencies inside the DependencySetPlugin.
This commit is contained in:
John Blum
2022-02-23 15:39:20 -08:00
parent f3c9565e99
commit 0e8e3baeeb
8 changed files with 16 additions and 42 deletions

View File

@@ -11,13 +11,9 @@ dependencies {
implementation "com.fasterxml.jackson.core:jackson-databind"
// See additional testImplementation dependencies declared in the testDependencies project extension
// defined in the DependencySetPlugin.
testImplementation "org.apache.geode:geode-membership:$apacheGeodeVersion"
testImplementation "org.apache.geode:geode-serialization:$apacheGeodeVersion"
testImplementation "junit:junit"
testImplementation "org.assertj:assertj-core"
testImplementation "org.mockito:mockito-core"
testImplementation "org.projectlombok:lombok"
testImplementation "edu.umd.cs.mtc:multithreadedtc"
}

View File

@@ -9,12 +9,8 @@ dependencies {
compileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
testImplementation "junit:junit"
testImplementation "org.assertj:assertj-core"
testImplementation "org.mockito:mockito-core"
testImplementation "org.projectlombok:lombok"
// See additional testImplementation dependencies declared in the testDependencies project extension
// defined in the DependencySetPlugin.
testImplementation "org.springframework.boot:spring-boot-starter-test"
testImplementation "org.springframework.data:spring-data-geode-test"
testImplementation "edu.umd.cs.mtc:multithreadedtc"
}

View File

@@ -11,12 +11,8 @@ dependencies {
provided "org.apache.geode:geode-logging:$apacheGeodeVersion"
provided "org.apache.geode:geode-serialization:$apacheGeodeVersion"
testImplementation "junit:junit"
testImplementation "org.assertj:assertj-core"
testImplementation "org.mockito:mockito-core"
testImplementation "org.projectlombok:lombok"
// See additional testImplementation dependencies declared in the testDependencies project extension
// defined in the DependencySetPlugin.
testImplementation "org.springframework.boot:spring-boot-starter-test"
testImplementation "org.springframework.data:spring-data-geode-test"
testImplementation "edu.umd.cs.mtc:multithreadedtc"
}

View File

@@ -20,15 +20,11 @@ dependencies {
optional "org.springframework.boot:spring-boot-configuration-processor"
optional "org.springframework.session:spring-session-data-geode"
// See additional testImplementation dependencies declared in the testDependencies project extension
// defined in the DependencySetPlugin.
testImplementation "jakarta.servlet:jakarta.servlet-api"
testImplementation "junit:junit"
testImplementation "org.assertj:assertj-core"
testImplementation "org.mockito:mockito-core"
testImplementation "org.projectlombok:lombok"
testImplementation "org.springframework.boot:spring-boot-starter-test"
testImplementation "org.springframework.boot:spring-boot-starter-web"
testImplementation "org.springframework.data:spring-data-geode-test"
testImplementation "edu.umd.cs.mtc:multithreadedtc"
testCompileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"

View File

@@ -14,12 +14,8 @@ dependencies {
compileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
testImplementation "junit:junit"
testImplementation "org.assertj:assertj-core"
testImplementation "org.mockito:mockito-core"
testImplementation "org.projectlombok:lombok"
// See additional testImplementation dependencies declared in the testDependencies project extension
// defined in the DependencySetPlugin.
testImplementation "org.springframework.boot:spring-boot-starter-test"
testImplementation "org.springframework.data:spring-data-geode-test"
testImplementation "edu.umd.cs.mtc:multithreadedtc"
}

View File

@@ -22,10 +22,8 @@ dependencies {
implementation "org.assertj:assertj-core"
implementation "org.projectlombok:lombok"
testImplementation "junit:junit"
testImplementation "org.mockito:mockito-core"
testImplementation "edu.umd.cs.mtc:multithreadedtc"
// See additional testImplementation dependencies declared in the testDependencies project extension
// defined in the DependencySetPlugin.
testImplementation project(":spring-geode-starter-test")
}

View File

@@ -22,6 +22,6 @@ dependencies {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation('org.springframework.data:spring-data-geode-test')
testImplementation project(':spring-geode-starter-test')
}

View File

@@ -21,17 +21,13 @@ dependencies {
runtimeOnly "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
testImplementation "junit:junit"
testImplementation "org.assertj:assertj-core"
testImplementation "org.mockito:mockito-core"
testImplementation "org.projectlombok:lombok"
testImplementation "org.testcontainers:testcontainers"
testImplementation "edu.umd.cs.mtc:multithreadedtc"
// See additional testImplementation dependencies declared in the testDependencies project extension
// defined in the DependencySetPlugin.
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude group: "org.skyscreamer", module: "jsonassert"
}
testImplementation "org.testcontainers:testcontainers"
testImplementation "jakarta.persistence:jakarta.persistence-api"
testImplementation "org.springframework.boot:spring-boot-starter-data-jpa"
testImplementation "org.springframework.boot:spring-boot-starter-data-cassandra"