Skip to content

Commit

Permalink
Merge pull request #77 from cobratbq/fix-bad-filtering-conditional
Browse files Browse the repository at this point in the history
Require checking scopes and types conditions in all cases.
  • Loading branch information
nicoulaj committed May 25, 2020
2 parents 8a6b8fd + 1f9f27b commit 2b18928
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -214,8 +214,8 @@ private List<Artifact> getArtifactsToProcess()
Set<Artifact> artifacts = transitive ? project.getArtifacts() : project.getDependencyArtifacts();
for ( Artifact artifact : artifacts )
{
if ((!allProjectModules.contains(artifact)) || (scopes == null || scopes.contains(artifact.getScope()))
&& (types == null || types.contains(artifact.getType())))
if (!allProjectModules.contains(artifact) && (scopes == null || scopes.contains(artifact.getScope()))
&& (types == null || types.contains(artifact.getType())))
{
getLog().debug(String.format("check artifact %s", artifact));
result.add(artifact);
Expand Down

0 comments on commit 2b18928

Please sign in to comment.