Move TestSourcesPlugin to a Java Gradle plugin

This commit moves the existing "test sources" Gradle plugin from Groovy
to Java and updates the "buildSrc" build file to prepare for additional
plugins in the Spring Framework build.

The plugin itself looks, for a given Spring Framework module, at all the
project dependencies for the following scopes: "compile", "testCompile",
"api", "implementation" and "optional" (to be supported by a different
plugin).

See gh-23282
This commit is contained in:
Brian Clozel
2019-08-13 16:20:16 +02:00
parent e7e5cce735
commit 4e5c780b99
7 changed files with 117 additions and 73 deletions

View File

@@ -22,10 +22,6 @@ include "spring-webflux"
include "spring-websocket"
include "spring-framework-bom"
// Exposes gradle buildSrc for IDE support
include "buildSrc"
rootProject.children.find{ it.name == "buildSrc" }.name = "spring-build-src"
rootProject.name = "spring"
rootProject.children.each {project ->
project.buildFileName = "${project.name}.gradle"