In bundle: saker.maven.support
Specifies a Maven dependency associated with a given artifact.
The configuration contains the scope, optionality, and transitive exclusions for a dependency.
Corresponds to the <dependency/> element in a pom.xml.
The option also accepts a simple scope string as its input.
Summary
Exclusions | Specifies the transitive exclusions of the dependency. |
Optional | Specifies the optionality of the dependency. |
Scope | Specifies the scope of the dependency. |
Fields
Collection of ExclusionTaskOption
Specifies the transitive exclusions of the dependency.
Corresponds to the <exclusions/> element in a pom.xml.
Specifies the optionality of the dependency.
Corresponds to the <optional/> element in a pom.xml.
Generally, this field has no use-case when used with the saker.maven.resolve() task, as the dependency is not a transitive dependency of another resolution. However, the field is present for completeness.
Specifies the scope of the dependency.
Corresponds to the <scope/> element in a pom.xml.