We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8ec49b commit 2cd302fCopy full SHA for 2cd302f
buildSrc/src/main/java/org/springframework/gradle/classpath/CheckClasspathForProhibitedDependencies.java
@@ -55,7 +55,7 @@ public FileCollection getClasspath() {
55
@TaskAction
56
public void checkForProhibitedDependencies() throws IOException {
57
ResolvedConfiguration resolvedConfiguration = this.classpath.getResolvedConfiguration();
58
- TreeSet<String> prohibited = resolvedConfiguration.getLenientConfiguration().getArtifacts().stream()
+ TreeSet<String> prohibited = resolvedConfiguration.getResolvedArtifacts().stream()
59
.map((artifact) -> artifact.getModuleVersion().getId()).filter(this::prohibited)
60
.map((id) -> id.getGroup() + ":" + id.getName()).collect(Collectors.toCollection(TreeSet::new));
61
if (!prohibited.isEmpty()) {
0 commit comments