Skip to content

Commit 01a0c88

Browse files
Merge branch '5.8.x' into 6.0.x
2 parents b17c0a5 + 602d418 commit 01a0c88

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)