Skip to content

Commit 7a839e9

Browse files
committed
Make dependencies on AssertJ and JUnit in spring-core-test optional
This commit also removes unnecessary dependencies in spring-core-test.gradle and updates framework-docs.gradle accordingly. Closes gh-34612
1 parent 46859d6 commit 7a839e9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

framework-docs/framework-docs.gradle

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ dependencies {
4545
api(project(":spring-aspects"))
4646
api(project(":spring-context"))
4747
api(project(":spring-context-support"))
48+
api(project(":spring-core-test"))
4849
api(project(":spring-jdbc"))
4950
api(project(":spring-jms"))
5051
api(project(":spring-test"))
@@ -66,9 +67,9 @@ dependencies {
6667
api("org.apache.activemq:activemq-ra:6.1.2")
6768
api("org.apache.commons:commons-dbcp2:2.11.0")
6869
api("org.aspectj:aspectjweaver")
70+
api("org.assertj:assertj-core")
6971
api("org.eclipse.jetty.websocket:jetty-websocket-jetty-api")
7072
api("org.jetbrains.kotlin:kotlin-stdlib")
73+
api("org.junit.jupiter:junit-jupiter-api")
7174

72-
implementation(project(":spring-core-test"))
73-
implementation("org.assertj:assertj-core")
7475
}

spring-core-test/spring-core-test.gradle

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ description = "Spring Core Test"
22

33
dependencies {
44
api(project(":spring-core"))
5-
api("org.assertj:assertj-core")
6-
api("org.junit.jupiter:junit-jupiter-api")
7-
compileOnly("org.junit.jupiter:junit-jupiter")
8-
compileOnly("org.junit.platform:junit-platform-engine")
9-
compileOnly("org.junit.platform:junit-platform-launcher")
5+
optional("org.assertj:assertj-core")
6+
optional("org.junit.jupiter:junit-jupiter-api")
7+
compileOnly("org.junit.jupiter:junit-jupiter-params") // Used in CompileWithForkedClassLoaderExtension Javadoc
8+
compileOnly("org.junit.platform:junit-platform-launcher") // Used in CompileWithForkedClassLoaderExtension
109
implementation("com.thoughtworks.qdox:qdox")
1110
}
1211

0 commit comments

Comments
 (0)