## Overview We should consider replacing our custom [`TestSourcesPlugin`](https://github.com/spring-projects/spring-framework/blob/master/buildSrc/src/main/java/org/springframework/build/testsources/TestSourcesPlugin.java) with Gradle's official support for [Test Fixtures](https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures). ## Rationale - Currently all test code is visible in all other (downstream) projects, and that makes it too easy to introduce unnecessary coupling. - For example, this made it more difficult to migrate to JUnit Jupiter. - Having test fixture code in a dedicated source folder makes it readily apparent that the code is reused across the test suite. - It will be much cleaner if projects explicitly declare that they rely on specific test fixtures of upstream projects. ## Related Issues - #23282