Skip to content

Commit 74e3551

Browse files
Merge branch '6.1.x'
2 parents aa3e839 + aa6577d commit 74e3551

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)