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 PathsCollectionpaths-
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
DEFAULT_CLASSIFIER, TYPE_JAR, TYPE_POM
-
Fields inherited from interface io.quarkus.maven.dependency.Dependency
SCOPE_COMPILE, SCOPE_IMPORT
-
-
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 intgetFlags()PathgetPath()Deprecated.in favor ofgetResolvedPaths()PathsCollectiongetPaths()Collection of the paths that collectively constitute the artifact's content.PathCollectiongetResolvedPaths()StringgetScope()WorkspaceModulegetWorkspaceModule()booleanisResolved()Whether the artifact has been resolved, i.e.voidsetPath(Path path)Associates the artifact with the given pathvoidsetPaths(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, isJar, toCompactCoords, toGACTVString
-
Methods inherited from interface io.quarkus.maven.dependency.Dependency
getExclusions, isClassLoaderParentFirst, 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:
isResolvedin interfaceResolvedDependency- Returns:
- true if the artifact has been resolved, otherwise - false
-
getResolvedPaths
public PathCollection getResolvedPaths()
- Specified by:
getResolvedPathsin interfaceResolvedDependency
-
getWorkspaceModule
public WorkspaceModule getWorkspaceModule()
- Specified by:
getWorkspaceModulein interfaceResolvedDependency
-
getScope
public String getScope()
- Specified by:
getScopein interfaceDependency
-
getFlags
public int getFlags()
- Specified by:
getFlagsin interfaceDependency
-
-