Overview

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

https://github.com/spring-projects/spring-framework/blob/8ee09e57661d9ea95bcc64fc933b46cdf3b3feb9/spring-core-test/spring-core-test.gradle#L5-L6

In light of my findings in https://github.com/spring-projects/spring-framework/issues/34610#issuecomment-2730035052, we should make the dependencies on AssertJ and JUnit optional like we do in spring-test.

https://github.com/spring-projects/spring-framework/blob/8ee09e57661d9ea95bcc64fc933b46cdf3b3feb9/spring-test/spring-test.gradle#L34-L43

Related Issues

  • 34610