Revert "Use lenient configuration for prohibited dependencies check"

This reverts commit 602d4189d1.
This commit is contained in:
Marcus Hert Da Coregio 2023-10-30 16:11:02 -03:00
parent e8ec49b4c5
commit 2cd302fb1b
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class CheckClasspathForProhibitedDependencies extends DefaultTask {
@TaskAction
public void checkForProhibitedDependencies() throws IOException {
ResolvedConfiguration resolvedConfiguration = this.classpath.getResolvedConfiguration();
TreeSet<String> prohibited = resolvedConfiguration.getLenientConfiguration().getArtifacts().stream()
TreeSet<String> prohibited = resolvedConfiguration.getResolvedArtifacts().stream()
.map((artifact) -> artifact.getModuleVersion().getId()).filter(this::prohibited)
.map((id) -> id.getGroup() + ":" + id.getName()).collect(Collectors.toCollection(TreeSet::new));
if (!prohibited.isEmpty()) {