Expose Gradle buildSrc for IDE support
Create 'spring-build-src' Gradle module that exposes the buildSrc folder as an IDE project.
This commit is contained in:
parent
6626a38730
commit
57d68b070e
12
build.gradle
12
build.gradle
|
@ -171,6 +171,18 @@ configure(allprojects - project(":spring-build-junit")) {
|
||||||
test.systemProperties.put("testGroups", properties.get("testGroups"))
|
test.systemProperties.put("testGroups", properties.get("testGroups"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
project("spring-build-src") {
|
||||||
|
description = "Exposes gradle buildSrc for IDE support"
|
||||||
|
apply plugin: "groovy"
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile gradleApi()
|
||||||
|
groovy localGroovy()
|
||||||
|
}
|
||||||
|
|
||||||
|
configurations.archives.artifacts.clear()
|
||||||
|
}
|
||||||
|
|
||||||
project("spring-build-junit") {
|
project("spring-build-junit") {
|
||||||
description = "Build-time JUnit dependencies and utilities"
|
description = "Build-time JUnit dependencies and utilities"
|
||||||
|
|
||||||
|
|
|
@ -23,3 +23,7 @@ include "spring-webmvc"
|
||||||
include "spring-webmvc-portlet"
|
include "spring-webmvc-portlet"
|
||||||
include "spring-webmvc-tiles3"
|
include "spring-webmvc-tiles3"
|
||||||
include "spring-build-junit"
|
include "spring-build-junit"
|
||||||
|
|
||||||
|
// Exposes gradle buildSrc for IDE support
|
||||||
|
include "buildSrc"
|
||||||
|
rootProject.children.find{ it.name == "buildSrc" }.name = "spring-build-src"
|
||||||
|
|
Loading…
Reference in New Issue