Package io.quarkus.bootstrap.model
Class AppArtifact
- java.lang.Object
-
- io.quarkus.bootstrap.model.AppArtifactCoords
-
- io.quarkus.bootstrap.model.AppArtifact
-
- All Implemented Interfaces:
Serializable
public class AppArtifact extends AppArtifactCoords implements 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
-
-
Constructor Summary
Constructors Constructor Description AppArtifact(AppArtifactCoords coords)AppArtifact(String groupId, String artifactId, String version)AppArtifact(String groupId, String artifactId, String classifier, String type, String version)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PathgetPath()Deprecated.in favor ofgetPaths()PathsCollectiongetPaths()Collection of the paths that collectively constitute the artifact's content.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
-
-
-
-
Field Detail
-
paths
protected PathsCollection paths
-
-
Method Detail
-
getPath
@Deprecated public Path getPath()
Deprecated.in favor ofgetPaths()
-
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.- Returns:
- true if the artifact has been resolved, otherwise - false
-
-