Skip to content

Commit

Permalink
Migrate away from method deprecated in Gradle 8.8
Browse files Browse the repository at this point in the history
Closes gh-381
  • Loading branch information
wilkinsona committed Apr 10, 2024
1 parent 95bce00 commit 911eae5
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -76,9 +75,9 @@ public MavenPomResolver(Project project, DependencyManagementConfigurationContai

@Override
public List<Pom> resolvePomsLeniently(List<PomReference> 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
Expand Down

0 comments on commit 911eae5

Please sign in to comment.