Skip to content

Commit

Permalink
drop optional dependencies when running enforcer rule
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Jul 13, 2020
1 parent 1ac3aba commit d6a62c3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -363,7 +363,7 @@ private ClassPathResult findBomClasspath(
.filter(artifact -> !Bom.shouldSkipBomMember(artifact))
.collect(toImmutableList());

ClassPathResult result = classPathBuilder.resolve(artifacts, true);
ClassPathResult result = classPathBuilder.resolve(artifacts, false);
ImmutableList<UnresolvableArtifactProblem> artifactProblems = result.getArtifactProblems();
if (!artifactProblems.isEmpty()) {
throw new EnforcerRuleException("Failed to collect dependency: " + artifactProblems);
Expand Down

0 comments on commit d6a62c3

Please sign in to comment.