Class DependencyOverrideCustomizer
java.lang.Object
org.jboss.pnc.gradlemanipulator.analyzer.alignment.DependencyOverrideCustomizer
- All Implemented Interfaces:
AlignmentService.Manipulator
AlignmentService.Manipulator that 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)
Global module selectors (@*) are applied before scoped selectors so that
a global rule dominates when both a global and a specific rule match the same
dependency. Response.matchingProjectRef() returns the first matching key
from the per-project LinkedHashMap, so insertion order determines
precedence: global (wildcard) keys are inserted first.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDependencyOverrideCustomizer(org.jboss.pnc.gradlemanipulator.common.Configuration configuration, Set<org.gradle.api.Project> projects) -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(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, waitMethods inherited from interface org.jboss.pnc.gradlemanipulator.analyzer.alignment.AlignmentService.Manipulator
order
-
Field Details
-
DEPENDENCY_OVERRIDE
- See Also:
-
-
Constructor Details
-
DependencyOverrideCustomizer
public DependencyOverrideCustomizer(org.jboss.pnc.gradlemanipulator.common.Configuration configuration, Set<org.gradle.api.Project> projects)
-
-
Method Details
-
customize
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
-