Package org.jboss.gm.analyzer.alignment
Class DependencyOverrideCustomizer
- java.lang.Object
-
- org.jboss.gm.analyzer.alignment.DependencyOverrideCustomizer
-
- All Implemented Interfaces:
AlignmentService.Manipulator
public class DependencyOverrideCustomizer extends java.lang.Object implements AlignmentService.Manipulator
AlignmentService.Manipulatorthat changes the versions of aligned dependencies.The implementation stores the configuration and current projects and uses those parsing out the dependencyOverride to check if a dependency matches. If so, the map's value is used as the new version (which may be empty, functioning as an exclusion)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEPENDENCY_OVERRIDE
-
Constructor Summary
Constructors Constructor Description DependencyOverrideCustomizer(org.jboss.gm.common.Configuration configuration, java.util.Set<org.gradle.api.Project> projects)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomize(AlignmentService.Response response)Changes the response after it is returned by the alignment service.-
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.Manipulator
order
-
-
-
-
Field Detail
-
DEPENDENCY_OVERRIDE
public static final java.lang.String DEPENDENCY_OVERRIDE
- See Also:
- Constant Field Values
-
-
Method Detail
-
customize
public void customize(AlignmentService.Response response)
Description copied from interface:AlignmentService.ManipulatorChanges the response after it is returned by the alignment service.- Specified by:
customizein interfaceAlignmentService.Manipulator- Parameters:
response- the resulting aligned dependencies from the dependency analyzer
-
-