Interface MavenArtifact
- All Known Subinterfaces:
MavenDependency
,MavenProtocPlugin
- All Known Implementing Classes:
ImmutableMavenDependency
,ImmutableMavenProtocPlugin
,MavenDependencyBean
,MavenProtocPluginBean
public interface MavenArtifact
Base interface for a parameter that consumes Maven artifact details.
- Since:
- 1.2.0
- Author:
- Ashley Scopes
-
Method Summary
Modifier and TypeMethodDescriptionGet the artifact ID.@Nullable String
Get the artifact classifier.@Nullable DependencyResolutionDepth
Get the preferences for the depth of dependency resolution.Get a set of dependency exclusions to apply when resolving dependencies.Get the group ID.@Nullable String
getType()
Get the artifact type.@Nullable String
Get the artifact version.
-
Method Details
-
getGroupId
-
getArtifactId
-
getVersion
@Nullable String getVersion()Get the artifact version.May be
null
if we expect to discover the version from dependency management.- Returns:
- the version.
-
getType
@Nullable String getType()Get the artifact type.May be
null
if the default should be used.- Returns:
- the artifact type.
-
getClassifier
@Nullable String getClassifier()Get the artifact classifier.May be
null
if no classifier is set.- Returns:
- the artifact classifier.
-
getDependencyResolutionDepth
@Nullable DependencyResolutionDepth getDependencyResolutionDepth()Get the preferences for the depth of dependency resolution.May be
null
if the default should be used.- Returns:
- the preference for the depth of dependency resolution.
-
getExclusions
Set<MavenExclusionBean> getExclusions()Get a set of dependency exclusions to apply when resolving dependencies.- Returns:
- the exclusions, which by default is empty.
-