Enum Class Repository

java.lang.Object
java.lang.Enum<Repository>
com.cleanroommc.gradle.api.util.dist.Repository
All Implemented Interfaces:
Serializable, Comparable<Repository>, Constable

public enum Repository extends Enum<Repository>
Default maven repositories for CleanroomGradle environments.
  • Enum Constant Details

    • CENTRAL

      public static final Repository CENTRAL
    • CLEANROOM

      public static final Repository CLEANROOM
    • MOJANG

      public static final Repository MOJANG
  • Method Details

    • values

      public static Repository[] 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 Repository 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
    • addTo

      public static void addTo(org.gradle.api.Project project)
    • id

      public String id()
    • url

      public String url()
    • hasZips

      public boolean hasZips()
    • groups

      public String[] groups()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Repository>