From 911eae515db1cd06429eae4941ae4d61a9eff0ad Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 10 Apr 2024 17:12:30 +0100 Subject: [PATCH] Migrate away from method deprecated in Gradle 8.8 Closes gh-381 --- .../internal/maven/MavenPomResolver.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/spring/gradle/dependencymanagement/internal/maven/MavenPomResolver.java b/src/main/java/io/spring/gradle/dependencymanagement/internal/maven/MavenPomResolver.java index 77813b0..fdf7c81 100644 --- a/src/main/java/io/spring/gradle/dependencymanagement/internal/maven/MavenPomResolver.java +++ b/src/main/java/io/spring/gradle/dependencymanagement/internal/maven/MavenPomResolver.java @@ -46,7 +46,6 @@ import org.gradle.api.artifacts.ResolvedArtifact; import org.gradle.api.artifacts.ResolvedConfiguration; import org.gradle.api.artifacts.dsl.DependencyHandler; -import org.gradle.api.specs.Specs; /** * A {@link PomResolver} that uses the jarjared Maven API to access the pom's model. @@ -76,9 +75,9 @@ public MavenPomResolver(Project project, DependencyManagementConfigurationContai @Override public List resolvePomsLeniently(List pomReferences) { - return createPoms(createConfiguration(pomReferences).getResolvedConfiguration() - .getLenientConfiguration() - .getArtifacts(Specs.SATISFIES_ALL), pomReferences, new MapPropertySource(Collections.emptyMap())); + return createPoms( + createConfiguration(pomReferences).getResolvedConfiguration().getLenientConfiguration().getArtifacts(), + pomReferences, new MapPropertySource(Collections.emptyMap())); } @Override