Interface AbstractDependencyDescriptor

All Superinterfaces:
com.buschmais.xo.api.CompositeObject, Descriptor
All Known Subinterfaces:
DependsOnDescriptor

public interface AbstractDependencyDescriptor extends Descriptor
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the scope of the dependency - `compile`, `runtime`, `test`, `system`, and `provided`.
    boolean
    Get indicates the dependency is optional for use of this library.
    void
    setOptional(boolean optional)
    Set optional.
    void
    Set the scope.

    Methods inherited from interface com.buschmais.xo.api.CompositeObject

    as, getDelegate, getId
  • Method Details

    • getScope

      String getScope()
      Get the scope of the dependency - `compile`, `runtime`, `test`, `system`, and `provided`. Used to calculate the various classpaths used for compilation, testing, and so on. It also assists in determining which artifacts to include in a distribution of this project.
    • setScope

      void setScope(String scope)
      Set the scope.
      Parameters:
      scope - The scope.
    • isOptional

      boolean isOptional()
      Get indicates the dependency is optional for use of this library. While the version of the dependency will be taken into account for dependency calculation if the library is used elsewhere, it will not be passed on transitively.
      Returns:
      Is optional?
    • setOptional

      void setOptional(boolean optional)
      Set optional.
      Parameters:
      optional - Is optional?