Search in sources :

Example 1 with ScalaDistroArtifactFilter

use of scala_maven_dependency.ScalaDistroArtifactFilter in project scala-maven-plugin by davidB.

the class ScalaMojoSupport method createScalaDistroDependencyFilter.

/**
 * @return
 *          A filter to only extract artifacts deployed from scala distributions
 */
private DependencyNodeFilter createScalaDistroDependencyFilter() {
    List<ArtifactFilter> filters = new ArrayList<ArtifactFilter>();
    filters.add(new ScalaDistroArtifactFilter(getScalaOrganization()));
    return new AndDependencyNodeFilter(filters);
}
Also used : AndArtifactFilter(org.apache.maven.artifact.resolver.filter.AndArtifactFilter) ArtifactFilter(org.apache.maven.artifact.resolver.filter.ArtifactFilter) ScopeArtifactFilter(org.apache.maven.artifact.resolver.filter.ScopeArtifactFilter) ScalaDistroArtifactFilter(scala_maven_dependency.ScalaDistroArtifactFilter) ScalaDistroArtifactFilter(scala_maven_dependency.ScalaDistroArtifactFilter) AndDependencyNodeFilter(org.apache.maven.shared.dependency.tree.filter.AndDependencyNodeFilter) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 AndArtifactFilter (org.apache.maven.artifact.resolver.filter.AndArtifactFilter)1 ArtifactFilter (org.apache.maven.artifact.resolver.filter.ArtifactFilter)1 ScopeArtifactFilter (org.apache.maven.artifact.resolver.filter.ScopeArtifactFilter)1 AndDependencyNodeFilter (org.apache.maven.shared.dependency.tree.filter.AndDependencyNodeFilter)1 ScalaDistroArtifactFilter (scala_maven_dependency.ScalaDistroArtifactFilter)1