Skip to content

Commit 0e8e3ba

Browse files
committed
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.
1 parent f3c9565 commit 0e8e3ba

File tree

8 files changed

+16
-42
lines changed

8 files changed

+16
-42
lines changed

apache-geode-extensions/apache-geode-extensions.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@ dependencies {
1111

1212
implementation "com.fasterxml.jackson.core:jackson-databind"
1313

14+
// See additional testImplementation dependencies declared in the testDependencies project extension
15+
// defined in the DependencySetPlugin.
1416
testImplementation "org.apache.geode:geode-membership:$apacheGeodeVersion"
1517
testImplementation "org.apache.geode:geode-serialization:$apacheGeodeVersion"
1618

17-
testImplementation "junit:junit"
18-
testImplementation "org.assertj:assertj-core"
19-
testImplementation "org.mockito:mockito-core"
20-
testImplementation "org.projectlombok:lombok"
21-
testImplementation "edu.umd.cs.mtc:multithreadedtc"
22-
2319
}

spring-geode-actuator-autoconfigure/spring-geode-actuator-autoconfigure.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@ dependencies {
99

1010
compileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
1111

12-
testImplementation "junit:junit"
13-
testImplementation "org.assertj:assertj-core"
14-
testImplementation "org.mockito:mockito-core"
15-
testImplementation "org.projectlombok:lombok"
12+
// See additional testImplementation dependencies declared in the testDependencies project extension
13+
// defined in the DependencySetPlugin.
1614
testImplementation "org.springframework.boot:spring-boot-starter-test"
17-
testImplementation "org.springframework.data:spring-data-geode-test"
18-
testImplementation "edu.umd.cs.mtc:multithreadedtc"
1915

2016
}

spring-geode-actuator/spring-geode-actuator.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@ dependencies {
1111
provided "org.apache.geode:geode-logging:$apacheGeodeVersion"
1212
provided "org.apache.geode:geode-serialization:$apacheGeodeVersion"
1313

14-
testImplementation "junit:junit"
15-
testImplementation "org.assertj:assertj-core"
16-
testImplementation "org.mockito:mockito-core"
17-
testImplementation "org.projectlombok:lombok"
14+
// See additional testImplementation dependencies declared in the testDependencies project extension
15+
// defined in the DependencySetPlugin.
1816
testImplementation "org.springframework.boot:spring-boot-starter-test"
19-
testImplementation "org.springframework.data:spring-data-geode-test"
20-
testImplementation "edu.umd.cs.mtc:multithreadedtc"
2117

2218
}

spring-geode-autoconfigure/spring-geode-autoconfigure.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,11 @@ dependencies {
2020
optional "org.springframework.boot:spring-boot-configuration-processor"
2121
optional "org.springframework.session:spring-session-data-geode"
2222

23+
// See additional testImplementation dependencies declared in the testDependencies project extension
24+
// defined in the DependencySetPlugin.
2325
testImplementation "jakarta.servlet:jakarta.servlet-api"
24-
testImplementation "junit:junit"
25-
testImplementation "org.assertj:assertj-core"
26-
testImplementation "org.mockito:mockito-core"
27-
testImplementation "org.projectlombok:lombok"
2826
testImplementation "org.springframework.boot:spring-boot-starter-test"
2927
testImplementation "org.springframework.boot:spring-boot-starter-web"
30-
testImplementation "org.springframework.data:spring-data-geode-test"
31-
testImplementation "edu.umd.cs.mtc:multithreadedtc"
3228

3329
testCompileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
3430

spring-geode-cloud/spring-geode-cloud.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@ dependencies {
1414

1515
compileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
1616

17-
testImplementation "junit:junit"
18-
testImplementation "org.assertj:assertj-core"
19-
testImplementation "org.mockito:mockito-core"
20-
testImplementation "org.projectlombok:lombok"
17+
// See additional testImplementation dependencies declared in the testDependencies project extension
18+
// defined in the DependencySetPlugin.
2119
testImplementation "org.springframework.boot:spring-boot-starter-test"
22-
testImplementation "org.springframework.data:spring-data-geode-test"
23-
testImplementation "edu.umd.cs.mtc:multithreadedtc"
2420

2521
}

spring-geode-docs/spring-geode-docs.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ dependencies {
2222
implementation "org.assertj:assertj-core"
2323
implementation "org.projectlombok:lombok"
2424

25-
testImplementation "junit:junit"
26-
testImplementation "org.mockito:mockito-core"
27-
testImplementation "edu.umd.cs.mtc:multithreadedtc"
28-
25+
// See additional testImplementation dependencies declared in the testDependencies project extension
26+
// defined in the DependencySetPlugin.
2927
testImplementation project(":spring-geode-starter-test")
3028

3129
}

spring-geode-tests/smoke-tests/multi-store/spring-geode-smoke-tests-multi-store.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ dependencies {
2222
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
2323
}
2424

25-
testImplementation('org.springframework.data:spring-data-geode-test')
25+
testImplementation project(':spring-geode-starter-test')
2626

2727
}

spring-geode/spring-geode.gradle

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,13 @@ dependencies {
2121

2222
runtimeOnly "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
2323

24-
testImplementation "junit:junit"
25-
testImplementation "org.assertj:assertj-core"
26-
testImplementation "org.mockito:mockito-core"
27-
testImplementation "org.projectlombok:lombok"
28-
testImplementation "org.testcontainers:testcontainers"
29-
testImplementation "edu.umd.cs.mtc:multithreadedtc"
30-
24+
// See additional testImplementation dependencies declared in the testDependencies project extension
25+
// defined in the DependencySetPlugin.
3126
testImplementation("org.springframework.boot:spring-boot-starter-test") {
3227
exclude group: "org.skyscreamer", module: "jsonassert"
3328
}
3429

30+
testImplementation "org.testcontainers:testcontainers"
3531
testImplementation "jakarta.persistence:jakarta.persistence-api"
3632
testImplementation "org.springframework.boot:spring-boot-starter-data-jpa"
3733
testImplementation "org.springframework.boot:spring-boot-starter-data-cassandra"

0 commit comments

Comments
 (0)