Skip to content

Commit

Permalink
[SUREFIRE-1564] Can't override platform version through project/plugi…
Browse files Browse the repository at this point in the history
…n dependencies
  • Loading branch information
Tibor17 committed Oct 7, 2018
1 parent 242c0e8 commit 5376261
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1777,8 +1777,23 @@ private static Set<Artifact> retainInProcArtifactsUnique( Set<Artifact> provider
Artifact... inPluginArtifacts )
{
Set<Artifact> result = new LinkedHashSet<Artifact>();
addAll( result, inPluginArtifacts );
result.removeAll( providerArtifacts );
for ( Artifact inPluginArtifact : inPluginArtifacts )
{
boolean contains = false;
for ( Artifact providerArtifact : providerArtifacts )
{
if ( providerArtifact.getGroupId().equals( inPluginArtifact.getGroupId() )
&& providerArtifact.getArtifactId().equals( inPluginArtifact.getArtifactId() ) )
{
contains = true;
break;
}
}
if ( !contains )
{
result.add( inPluginArtifact );
}
}
return result;
}

Expand Down

0 comments on commit 5376261

Please sign in to comment.