Build: Use targetConfiguration to remove gradle deprecation warning (#23734)

In gradle 3.3 use of getConfiguration on a ModuleDependency was
deprecated. This commit changes it to use getTargetConfiguration.
This commit is contained in:
Ryan Ernst 2017-03-24 09:43:38 -07:00 committed by GitHub
parent 396785ccb1
commit 8a0bc73435

View File

@ -217,7 +217,7 @@ class VagrantTestPlugin implements Plugin<Project> {
// Now we iterate over dependencies of the bats configuration. When a project dependency is found,
// we bring back its own archives, test files or test utils.
project.afterEvaluate {
project.configurations.bats.dependencies.findAll {it.configuration == BATS }.each { d ->
project.configurations.bats.dependencies.findAll {it.targetConfiguration == BATS }.each { d ->
if (d instanceof DefaultProjectDependency) {
DefaultProjectDependency externalBatsDependency = (DefaultProjectDependency) d
Project externalBatsProject = externalBatsDependency.dependencyProject