mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Avoid using Project objects as dependency notation
Gradle 9.6 deprecates passing a Project instance as dependency notation, which currently causes the build to emit deprecation warnings and will become an error in Gradle 10. This commit updates AggregatorPlugin to use DependencyFactory#createProjectDependency instead. Signed-off-by: Hyunwoo Jung <hyunwoojung@kakao.com> See gh-51598
This commit is contained in:
committed by
Andy Wilkinson
parent
03cf0c49ce
commit
ceefb553c4
+2
-1
@@ -47,7 +47,8 @@ public class AggregatorPlugin implements Plugin<Project> {
|
||||
configureAttributes(configuration, aggregate, target.getObjects());
|
||||
});
|
||||
target.getRootProject()
|
||||
.allprojects((project) -> target.getDependencies().add(dependencies.getName(), project));
|
||||
.allprojects((project) -> target.getDependencies()
|
||||
.add(dependencies.getName(), project.getDependencyFactory().createProjectDependency()));
|
||||
aggregate.getFiles()
|
||||
.convention(aggregated.map((configuration) -> configuration.getIncoming()
|
||||
.artifactView((view) -> view.setLenient(true))
|
||||
|
||||
Reference in New Issue
Block a user