- All Superinterfaces:
- ClassificationNodePlugin, NodePlugin
public interface FindModuleByArtifactGroupIdPlugin
extends ClassificationNodePlugin
Helps in finding a module whose build produces a given ArtifactGroupId.
Such a plugin is in theory not strictly required since finding a module whose
build produces a given ArtifactGroupId can be done by visiting every module in
the hierarchy and using its ArtifactInfoPlugin to ask it whether its build
produces the given ArtifactGroupId.
However in order to support dynamically created modules, classification nodes
must be able to determine which child Module, that may not already be
created, may produce the given ArtifactGroupId in their builds presumably based
on the NodePath of the classification node. But since classification nodes
should not generally know about exceptions, a module whose build exceptionally
produces an ArtifactGroupId should be defined explicitly in the hierarchy and
not be created dynamically.
Also, limiting the tree traversal to classification nodes is a useful
optimization.
- Author:
- David Raymond