Fix early sourceSets access in spring-io plugin

https://build.spring.io/browse/INT-FATS5IC-46

SI places XML configs alongside with test classes for better navigation from IDE.
For this purpose we configure  `sourceSets.test.resources` for `src/test/java` as well.

Looks like `spring-io-0.0.6` read such a configuration very early and we end up with a default value for `resources`.

* Moving `sourceSets` before applying `spring-io` plugin makes everything working again
This commit is contained in:
Artem Bilan
2017-01-10 11:40:29 -05:00
parent 54654546b9
commit bc525cf6ea

View File

@@ -61,6 +61,14 @@ subprojects { subproject ->
apply plugin: 'jacoco'
apply plugin: 'checkstyle'
sourceSets {
test {
resources {
srcDirs = ['src/test/resources', 'src/test/java']
}
}
}
if (project.hasProperty('platformVersion') && !(subproject.name ==~ /.*-bom/)) {
apply plugin: 'spring-io'
@@ -143,14 +151,6 @@ subprojects { subproject ->
}
}
sourceSets {
test {
resources {
srcDirs = ['src/test/resources', 'src/test/java']
}
}
}
jacoco {
toolVersion = "0.7.8"
}