Skip to content

Commit 602d418

Browse files
Use lenient configuration for prohibited dependencies check
Issue gh-14047
1 parent 884014c commit 602d418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildSrc/src/main/java/org/springframework/gradle/classpath/CheckClasspathForProhibitedDependencies.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public FileCollection getClasspath() {
5555
@TaskAction
5656
public void checkForProhibitedDependencies() throws IOException {
5757
ResolvedConfiguration resolvedConfiguration = this.classpath.getResolvedConfiguration();
58-
TreeSet<String> prohibited = resolvedConfiguration.getResolvedArtifacts().stream()
58+
TreeSet<String> prohibited = resolvedConfiguration.getLenientConfiguration().getArtifacts().stream()
5959
.map((artifact) -> artifact.getModuleVersion().getId()).filter(this::prohibited)
6060
.map((id) -> id.getGroup() + ":" + id.getName()).collect(Collectors.toCollection(TreeSet::new));
6161
if (!prohibited.isEmpty()) {

0 commit comments

Comments
 (0)