Add test dependencies sources for testCompile

Update the TestSourceSetDependenciesPlugin to consider testCompile
configurations.
This commit is contained in:
Phillip Webb 2013-01-03 22:45:20 -08:00 committed by Chris Beams
parent 1c31f6af8e
commit d52f883453
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class TestSourceSetDependenciesPlugin implements Plugin<Project> {
private void collectProjectDependencies(Set<ProjectDependency> projectDependencies,
Project project) {
for(def configurationName in ["compile", "optional", "provided"]) {
for(def configurationName in ["compile", "optional", "provided", "testCompile"]) {
Configuration configuration = project.getConfigurations().findByName(configurationName)
if(configuration) {
configuration.dependencies.findAll { it instanceof ProjectDependency }.each {