protected final FilterArtifacts getFilters ( ArtifactsFilter ... additionalFilters ) { FilterArtifacts filters = new FilterArtifacts ( ) ; for ( ArtifactsFilter additionalFilter : additionalFilters ) { filters . addFilter ( additionalFilter ) ; } filters . addFilter ( new MatchingGroupIdFilter ( cleanFilterConfig ( this . excludeGroupIds ) ) ) ; if ( this . includes != null && ! this . includes . isEmpty ( ) ) { filters . addFilter ( new IncludeFilter ( this . includes ) ) ; } if ( this . excludes != null && ! this . excludes . isEmpty ( ) ) { filters . addFilter ( new ExcludeFilter ( this . excludes ) ) ; } return filters ; }
Return artifact filters configured for this MOJO .