Skip to content

Make dependencies on AssertJ and JUnit in spring-core-test optional #34612

Closed
@sbrannen

Description

@sbrannen

Overview

The spring-core-test artifact currently has required transitive dependencies on AssertJ and JUnit.

api("org.assertj:assertj-core")
api("org.junit.jupiter:junit-jupiter-api")

In light of my findings in #34610 (comment), we should make the dependencies on AssertJ and JUnit optional like we do in spring-test.

optional("org.assertj:assertj-core")
optional("org.hamcrest:hamcrest")
optional("org.htmlunit:htmlunit") {
exclude group: "commons-logging", module: "commons-logging"
}
optional("org.jetbrains.kotlin:kotlin-reflect")
optional("org.jetbrains.kotlin:kotlin-stdlib")
optional("org.jetbrains.kotlinx:kotlinx-coroutines-core")
optional("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
optional("org.junit.jupiter:junit-jupiter-api")

Related Issues

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)in: testIssues in the test moduletype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions