Skip to content

Commit 9b10d9f

Browse files
Copilotrashidi
andauthored
Remove duplicate test dependencies across modules
Remove non-starter test dependencies that are already transitively included by their corresponding starter counterparts: - data-jpa-audit: remove spring-boot-data-jpa-test (in starter-data-jpa-test) - data-jpa-event: remove spring-boot-data-jpa-test and spring-boot-jpa-test - data-jpa-filtered-query: remove spring-boot-data-jpa-test - data-jpa-hibernate-cache: remove spring-boot-data-jpa-test - data-redis-cache: remove spring-boot-data-jpa-test - test-slice-tests-rest: remove spring-boot-data-jpa-test and spring-boot-webmvc-test - web-thymeleaf-xss: remove spring-boot-webmvc-test - web-rest-client: remove spring-boot-restclient-test Agent-Logs-Url: https://github.com/rashidi/spring-boot-tutorials/sessions/b12868df-125e-444a-bd1a-c2304ba0e19b Co-authored-by: rashidi <380073+rashidi@users.noreply.github.com>
1 parent 81f38bf commit 9b10d9f

File tree

8 files changed

+2
-12
lines changed

8 files changed

+2
-12
lines changed

data-jpa-audit/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ dependencies {
2222
runtimeOnly("com.mysql:mysql-connector-j")
2323
testImplementation("org.springframework.boot:spring-boot-starter-data-jpa-test")
2424
testImplementation("org.springframework.boot:spring-boot-starter-test")
25-
testImplementation("org.springframework.boot:spring-boot-data-jpa-test")
2625
testImplementation("org.springframework.boot:spring-boot-testcontainers")
2726
testImplementation("org.testcontainers:testcontainers-junit-jupiter")
2827
testImplementation("org.testcontainers:testcontainers-mysql")

data-jpa-event/build.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ dependencies {
2222
runtimeOnly("org.postgresql:postgresql")
2323
testImplementation("org.springframework.boot:spring-boot-starter-data-jpa-test")
2424
testImplementation("org.springframework.boot:spring-boot-starter-test")
25-
testImplementation("org.springframework.boot:spring-boot-data-jpa-test")
26-
testImplementation("org.springframework.boot:spring-boot-jpa-test")
2725
testImplementation("org.springframework.boot:spring-boot-testcontainers")
2826
testImplementation("org.testcontainers:testcontainers-junit-jupiter")
2927
testImplementation("org.testcontainers:testcontainers-postgresql")

data-jpa-filtered-query/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ dependencies {
2222
runtimeOnly("com.mysql:mysql-connector-j")
2323
testImplementation("org.springframework.boot:spring-boot-starter-data-jpa-test")
2424
testImplementation("org.springframework.boot:spring-boot-starter-test")
25-
testImplementation("org.springframework.boot:spring-boot-data-jpa-test")
2625
testImplementation("org.springframework.boot:spring-boot-testcontainers")
2726
testImplementation("org.testcontainers:testcontainers-junit-jupiter")
2827
testImplementation("org.testcontainers:testcontainers-mysql")

data-jpa-hibernate-cache/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ dependencies {
2424
runtimeOnly("org.postgresql:postgresql")
2525
testImplementation("org.springframework.boot:spring-boot-starter-data-jpa-test")
2626
testImplementation("org.springframework.boot:spring-boot-starter-test")
27-
testImplementation("org.springframework.boot:spring-boot-data-jpa-test")
2827
testImplementation("org.springframework.boot:spring-boot-testcontainers")
2928
testImplementation("org.testcontainers:testcontainers-junit-jupiter")
3029
testImplementation("org.testcontainers:testcontainers-postgresql")

data-redis-cache/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@ dependencies {
2222
implementation("org.springframework.boot:spring-boot-starter-data-redis")
2323
runtimeOnly("org.postgresql:postgresql")
2424
testImplementation("org.springframework.boot:spring-boot-starter-test")
25-
testImplementation("org.springframework.boot:spring-boot-data-jpa-test")
25+
testImplementation("org.springframework.boot:spring-boot-starter-data-jpa-test")
2626
testImplementation("org.springframework.boot:spring-boot-cache")
2727
testImplementation("org.springframework.boot:spring-boot-data-redis")
2828
testImplementation("org.springframework.boot:spring-boot-testcontainers")
2929
testImplementation("org.testcontainers:testcontainers-junit-jupiter")
3030
testImplementation("org.testcontainers:testcontainers-postgresql")
3131
testImplementation("com.redis:testcontainers-redis")
32-
testImplementation("org.springframework.boot:spring-boot-starter-data-jpa-test")
3332
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
3433
}
3534

test-slice-tests-rest/build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ dependencies {
2424
testImplementation("org.springframework.boot:spring-boot-starter-security-test")
2525
runtimeOnly("org.postgresql:postgresql")
2626
testImplementation("org.springframework.boot:spring-boot-starter-test")
27-
testImplementation("org.springframework.boot:spring-boot-data-jpa-test")
28-
testImplementation("org.springframework.boot:spring-boot-webmvc-test")
2927
testImplementation("org.springframework.boot:spring-boot-starter-webmvc-test")
28+
testImplementation("org.springframework.boot:spring-boot-starter-data-jpa-test")
3029
testImplementation("org.springframework.boot:spring-boot-testcontainers")
3130
testImplementation("org.springframework.batch:spring-batch-test")
32-
testImplementation("org.springframework.boot:spring-boot-starter-data-jpa-test")
3331
testImplementation("org.testcontainers:testcontainers-junit-jupiter")
3432
testImplementation("org.testcontainers:testcontainers-postgresql")
3533
testRuntimeOnly("org.junit.platform:junit-platform-launcher")

web-rest-client/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ dependencies {
2222
implementation("org.springframework.boot:spring-boot-starter-webmvc")
2323
testImplementation("org.springframework.boot:spring-boot-starter-restclient-test")
2424
testImplementation("org.springframework.boot:spring-boot-starter-test")
25-
testImplementation("org.springframework.boot:spring-boot-restclient-test")
2625
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
2726
}
2827

web-thymeleaf-xss/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ dependencies {
2323
implementation("org.springframework.boot:spring-boot-starter-webmvc")
2424
implementation("org.thymeleaf.extras:thymeleaf-extras-springsecurity6")
2525
testImplementation("org.springframework.boot:spring-boot-starter-test")
26-
testImplementation("org.springframework.boot:spring-boot-webmvc-test")
2726
testImplementation("org.springframework.boot:spring-boot-starter-webmvc-test")
2827
testImplementation("org.springframework.boot:spring-boot-starter-security-test")
2928
testRuntimeOnly("org.junit.platform:junit-platform-launcher")

0 commit comments

Comments
 (0)