Skip to content

Commit 8a0bc73

Browse files
authored
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.
1 parent 396785c commit 8a0bc73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/vagrant/VagrantTestPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class VagrantTestPlugin implements Plugin<Project> {
217217
// Now we iterate over dependencies of the bats configuration. When a project dependency is found,
218218
// we bring back its own archives, test files or test utils.
219219
project.afterEvaluate {
220-
project.configurations.bats.dependencies.findAll {it.configuration == BATS }.each { d ->
220+
project.configurations.bats.dependencies.findAll {it.targetConfiguration == BATS }.each { d ->
221221
if (d instanceof DefaultProjectDependency) {
222222
DefaultProjectDependency externalBatsDependency = (DefaultProjectDependency) d
223223
Project externalBatsProject = externalBatsDependency.dependencyProject

0 commit comments

Comments
 (0)