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:
  • Field Details

  • Constructor Details

  • Method Details

    • getPath

      @Deprecated public Path getPath()
      Deprecated.
      in favor of getResolvedPaths()
    • 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 interface ResolvedDependency
      Returns:
      true if the artifact has been resolved, otherwise - false
    • getResolvedPaths

      public PathCollection getResolvedPaths()
      Specified by:
      getResolvedPaths in interface ResolvedDependency
    • getWorkspaceModule

      public WorkspaceModule getWorkspaceModule()
      Specified by:
      getWorkspaceModule in interface ResolvedDependency
    • getScope

      public String getScope()
      Specified by:
      getScope in interface Dependency
    • getFlags

      public int getFlags()
      Specified by:
      getFlags in interface Dependency