Package org.jboss.gm.analyzer.alignment
Class DependencyExclusionCustomizer
- java.lang.Object
-
- org.jboss.gm.analyzer.alignment.DependencyExclusionCustomizer
-
- All Implemented Interfaces:
AlignmentService.RequestCustomizer
public class DependencyExclusionCustomizer extends java.lang.Object implements AlignmentService.RequestCustomizer
AlignmentService.RequestCustomizerthat removes dependencies from aAlignmentService.Request.The idea is that this class will be created with a predicate (which can of course be the product of multiple predicates) that will match dependencies that are supposed to be excluded. The hard part is creating the proper predicate for each project based on configuration similar to what PME offers.
-
-
Constructor Summary
Constructors Constructor Description DependencyExclusionCustomizer(java.util.function.Predicate<org.commonjava.maven.atlas.ident.ref.ProjectRef> predicate)Creates a dependency exclusion customizer with the given predicate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AlignmentService.Requestcustomize(AlignmentService.Request request)Changes the given request before it is handed to the alignment service.static AlignmentService.RequestCustomizerfromConfigurationForModule(org.jboss.gm.common.Configuration configuration, java.util.Set<org.gradle.api.Project> projects)Creates a request customize from the given configuration and set of projects.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.gm.analyzer.alignment.AlignmentService.RequestCustomizer
order
-
-
-
-
Constructor Detail
-
DependencyExclusionCustomizer
public DependencyExclusionCustomizer(java.util.function.Predicate<org.commonjava.maven.atlas.ident.ref.ProjectRef> predicate)
Creates a dependency exclusion customizer with the given predicate.- Parameters:
predicate- the predicate (or product of multiple predicates) that will match dependencies to be excluded
-
-
Method Detail
-
customize
public AlignmentService.Request customize(AlignmentService.Request request)
Description copied from interface:AlignmentService.RequestCustomizerChanges the given request before it is handed to the alignment service.- Specified by:
customizein interfaceAlignmentService.RequestCustomizer- Parameters:
request- the request- Returns:
- the modified request
-
fromConfigurationForModule
public static AlignmentService.RequestCustomizer fromConfigurationForModule(org.jboss.gm.common.Configuration configuration, java.util.Set<org.gradle.api.Project> projects)
Creates a request customize from the given configuration and set of projects.- Parameters:
configuration- holds all configuration values for the two pluginsprojects- the projects- Returns:
- the request customizer
-
-