Enum Class ReleaseStatus

java.lang.Object
java.lang.Enum<ReleaseStatus>
io.github.jcohy.gradle.version.ReleaseStatus
所有已实现的接口:
Serializable, Comparable<ReleaseStatus>, Constable

public enum ReleaseStatus extends Enum<ReleaseStatus>
Copyright: Copyright (c) 2021 jcohy.com

Description: Release 版本状态

从以下版本开始:
0.0.5.1
  • 枚举常量详细资料

    • SNAPSHOT

      public static final ReleaseStatus SNAPSHOT
      快照版本
    • PRERELEASE

      public static final ReleaseStatus PRERELEASE
      预发布版本
    • GENERAL_AVAILABILITY

      public static final ReleaseStatus GENERAL_AVAILABILITY
      可用版本
  • 方法详细资料

    • values

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

      public static ReleaseStatus 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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • ofProject

      public static ReleaseStatus ofProject(org.gradle.api.Project project)
      根据版本名 获取 status
      参数:
      project - 项目版本
      返回:
      获取此项目的 release status