Package io.quarkus.bootstrap.model
Class AppArtifact
- java.lang.Object
-
- io.quarkus.bootstrap.model.AppArtifactCoords
-
- io.quarkus.bootstrap.model.AppArtifact
-
- All Implemented Interfaces:
ArtifactCoords
,Dependency
,ResolvedDependency
,Serializable
public class AppArtifact extends AppArtifactCoords implements ResolvedDependency, Serializable
Represents an application (or its dependency) artifact.- Author:
- Alexey Loubyansky
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected PathsCollection
paths
-
Fields inherited from class io.quarkus.bootstrap.model.AppArtifactCoords
artifactId, classifier, groupId, key, type, TYPE_JAR, TYPE_POM, version
-
Fields inherited from interface io.quarkus.maven.dependency.ArtifactCoords
TYPE_JAR, TYPE_POM
-
-
Constructor Summary
Constructors Constructor Description AppArtifact(AppArtifactCoords coords)
AppArtifact(AppArtifactCoords coords, WorkspaceModule module)
AppArtifact(String groupId, String artifactId, String version)
AppArtifact(String groupId, String artifactId, String classifier, String type, String version)
AppArtifact(String groupId, String artifactId, String classifier, String type, String version, WorkspaceModule module, String scope, int flags)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getFlags()
Path
getPath()
Deprecated.in favor ofgetResolvedPaths()
PathsCollection
getPaths()
Collection of the paths that collectively constitute the artifact's content.PathCollection
getResolvedPaths()
String
getScope()
WorkspaceModule
getWorkspaceModule()
boolean
isResolved()
Whether the artifact has been resolved, i.e.void
setPath(Path path)
Associates the artifact with the given pathvoid
setPaths(PathsCollection paths)
Associates the artifact with a collection of paths that constitute its content.-
Methods inherited from class io.quarkus.bootstrap.model.AppArtifactCoords
append, equals, fromString, getArtifactId, getClassifier, getGroupId, getKey, getType, getVersion, hashCode, split, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.quarkus.maven.dependency.ArtifactCoords
getArtifactId, getClassifier, getGroupId, getKey, getType, getVersion, toCompactCoords, toGACTVString
-
Methods inherited from interface io.quarkus.maven.dependency.Dependency
isDeploymentCp, isDirect, isFlagSet, isOptional, isReloadable, isRuntimeCp, isRuntimeExtensionArtifact, isWorkspaceModule
-
Methods inherited from interface io.quarkus.maven.dependency.ResolvedDependency
getContentTree, getSources
-
-
-
-
Field Detail
-
paths
protected PathsCollection paths
-
-
Constructor Detail
-
AppArtifact
public AppArtifact(AppArtifactCoords coords)
-
AppArtifact
public AppArtifact(AppArtifactCoords coords, WorkspaceModule module)
-
AppArtifact
public AppArtifact(String groupId, String artifactId, String classifier, String type, String version)
-
-
Method Detail
-
getPath
@Deprecated public Path getPath()
Deprecated.in favor ofgetResolvedPaths()
-
setPath
public void setPath(Path path)
Associates the artifact with the given path- Parameters:
path
- artifact location
-
getPaths
public PathsCollection getPaths()
Collection of the paths that collectively constitute the artifact's content. Normally, especially in the Maven world, an artifact is resolved to a single path, e.g. a JAR or a project's output directory. However, in Gradle, depending on the build/test phase, artifact's content may need to be represented as a collection of paths.- Returns:
- collection of paths that constitute the artifact's content
-
setPaths
public void setPaths(PathsCollection paths)
Associates the artifact with a collection of paths that constitute its content.- Parameters:
paths
- collection of paths that constitute the artifact's content.
-
isResolved
public boolean isResolved()
Whether the artifact has been resolved, i.e. associated with paths that constitute its content.- Specified by:
isResolved
in interfaceResolvedDependency
- Returns:
- true if the artifact has been resolved, otherwise - false
-
getResolvedPaths
public PathCollection getResolvedPaths()
- Specified by:
getResolvedPaths
in interfaceResolvedDependency
-
getWorkspaceModule
public WorkspaceModule getWorkspaceModule()
- Specified by:
getWorkspaceModule
in interfaceResolvedDependency
-
getScope
public String getScope()
- Specified by:
getScope
in interfaceDependency
-
getFlags
public int getFlags()
- Specified by:
getFlags
in interfaceDependency
-
-