Enum Class ReleaseStatus

java.lang.Object
java.lang.Enum<ReleaseStatus>
io.github.jcohy.gradle.version.ReleaseStatus
All Implemented Interfaces:
Serializable, Comparable<ReleaseStatus>, Constable

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

Description: Release 版本状态

Since:
0.0.5.1
  • Enum Constant Details

    • SNAPSHOT

      public static final ReleaseStatus SNAPSHOT
      快照版本
    • PRERELEASE

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

      public static final ReleaseStatus GENERAL_AVAILABILITY
      可用版本
  • Method Details

    • values

      public static ReleaseStatus[] 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 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.)
      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
    • ofProject

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