Enum Class DependencyScope

java.lang.Object
java.lang.Enum<DependencyScope>
io.spring.initializr.generator.buildsystem.DependencyScope
All Implemented Interfaces:
Serializable, Comparable<DependencyScope>, Constable

public enum DependencyScope extends Enum<DependencyScope>
The scopes of dependencies supported by project generation.
Author:
Andy Wilkinson
  • Enum Constant Details

    • ANNOTATION_PROCESSOR

      public static final DependencyScope ANNOTATION_PROCESSOR
      A dependency that is used as an annotation processor when compiling a project.
    • COMPILE

      public static final DependencyScope COMPILE
      A dependency that is used to compile a project.
    • COMPILE_ONLY

      public static final DependencyScope COMPILE_ONLY
      A dependency that is a compile time only dependency and not used at runtime.
    • RUNTIME

      public static final DependencyScope RUNTIME
      A dependency this is used to run a project.
    • PROVIDED_RUNTIME

      public static final DependencyScope PROVIDED_RUNTIME
      A dependency that is provided and is used to run the project.
    • TEST_COMPILE

      public static final DependencyScope TEST_COMPILE
      A dependency that is used to compile a project's tests.
    • TEST_RUNTIME

      public static final DependencyScope TEST_RUNTIME
      A dependency this is used to run a project's tests.
  • Method Details

    • values

      public static DependencyScope[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DependencyScope valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null