From dac249fb0d721fc9f17dafd1abbd17508f12f7ad Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 3 Jan 2017 13:05:48 +0000 Subject: [PATCH] Replace use of Gradle API that's bean deprecated in 3.x Closes gh-7734 --- .../boot/gradle/repackage/ProjectLibraries.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/repackage/ProjectLibraries.java b/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/repackage/ProjectLibraries.java index d1c4eef608..b10ee35ff7 100644 --- a/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/repackage/ProjectLibraries.java +++ b/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/repackage/ProjectLibraries.java @@ -127,8 +127,11 @@ class ProjectLibraries implements Libraries { } else if (dependency instanceof ProjectDependency) { ProjectDependency projectDependency = (ProjectDependency) dependency; - libraries.addAll(getLibrariesForFileDependencies( - projectDependency.getProjectConfiguration(), scope)); + Configuration dependencyConfiguration = projectDependency + .getDependencyProject().getConfigurations() + .getByName(projectDependency.getConfiguration()); + libraries.addAll( + getLibrariesForFileDependencies(dependencyConfiguration, scope)); } } return libraries;