Package io.quarkus.maven.dependency
Class ResolvedDependencyBuilder
java.lang.Object
io.quarkus.maven.dependency.ResolvedDependencyBuilder
- All Implemented Interfaces:
Mappable,ArtifactCoords,Dependency,ResolvedDependency
-
Field Summary
Fields inherited from interface io.quarkus.maven.dependency.ArtifactCoords
DEFAULT_CLASSIFIER, TYPE_JAR, TYPE_POMFields inherited from interface io.quarkus.maven.dependency.Dependency
SCOPE_COMPILE, SCOPE_IMPORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDependency(ArtifactCoords coords) addExclusion(ArtifactKey key) addExclusion(String groupId, String artifactId) asMap(MappableCollectionFactory factory) Returns an instance of aMapthat represents this instance.build()voidclearFlag(int flag) A collection of all the resolved direct dependencies of the artifact of this dependency.A collection of the all the configured direct dependencies of the artifact of this dependency (except test dependencies of transitive dependencies).intgetFlags()getKey()getScope()getType()booleanisFlagSet(int flag) static ResolvedDependencyBuildersetArtifactId(String artifactId) setClassifier(String classifier) setCoords(ArtifactCoords coords) setDirect(boolean direct) setDirectDependencies(Collection<Dependency> directDeps) setFlags(int flag) setGroupId(String groupId) setOptional(boolean optional) setResolvedPath(Path path) setResolvedPaths(PathCollection resolvedPaths) setVersion(String version) setWorkspaceModule(WorkspaceModule projectModule) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.maven.dependency.ArtifactCoords
getArtifactId, getClassifier, getGroupId, getKey, getType, getVersion, isJar, isSnapshot, toCompactCoords, toGACTVStringMethods inherited from interface io.quarkus.maven.dependency.Dependency
getExclusions, getFlags, getScope, hasAllFlags, hasAnyFlag, isAnyFlagSet, isClassLoaderParentFirst, isDeploymentCp, isDirect, isFlagSet, isOptional, isReloadable, isRuntimeCp, isRuntimeExtensionArtifact, isWorkspaceModuleMethods inherited from interface io.quarkus.maven.dependency.ResolvedDependency
getContentTree, getContentTree, getSources, isResolved
-
Constructor Details
-
ResolvedDependencyBuilder
public ResolvedDependencyBuilder()
-
-
Method Details
-
newInstance
-
fromMap
-
getResolvedPaths
- Specified by:
getResolvedPathsin interfaceResolvedDependency
-
setResolvedPath
-
setResolvedPaths
-
getWorkspaceModule
- Specified by:
getWorkspaceModulein interfaceResolvedDependency
-
setWorkspaceModule
-
getArtifactCoords
-
addDependency
-
addDependencies
-
setDependencies
-
getDependencies
Description copied from interface:ResolvedDependencyA collection of all the resolved direct dependencies of the artifact of this dependency. Note that this method will include only direct dependencies that are found among application dependencies. This is one of the differences between this method andResolvedDependency.getDirectDependencies().- Specified by:
getDependenciesin interfaceResolvedDependency- Returns:
- all the resolved direct dependencies of the artifact of this dependency
-
setDirectDependencies
-
getDirectDependencies
Description copied from interface:ResolvedDependencyA collection of the all the configured direct dependencies of the artifact of this dependency (except test dependencies of transitive dependencies). Note that some of the configured direct dependencies might not be resolved due to scope, optionality or exclusions. The resulting collection returned from this method will still include such dependencies withDependencyFlags.MISSING_FROM_APPLICATIONflag. Every dependency returned from this method willDependencyFlags.DIRECTset.- Specified by:
getDirectDependenciesin interfaceResolvedDependency- Returns:
- all the direct dependencies of the artifact of this dependency
-
build
-
asMap
Description copied from interface:MappableReturns an instance of aMapthat represents this instance. -
setCoords
-
setGroupId
-
setArtifactId
-
setClassifier
-
setType
-
setVersion
-
setScope
-
setOptional
-
setDeploymentCp
-
setRuntimeCp
-
setWorkspaceModule
-
setDirect
-
setReloadable
-
setRuntimeExtensionArtifact
-
setFlags
-
getFlags
public int getFlags() -
isFlagSet
public boolean isFlagSet(int flag) -
clearFlag
public void clearFlag(int flag) -
addExclusion
-
addExclusion
-
getGroupId
-
getArtifactId
-
getClassifier
-
getType
-
getVersion
-
getScope
-
getKey
-
toGACTVString
-