Class VersionNumber

  • All Implemented Interfaces:
    java.lang.Comparable<VersionNumber>

    @Deprecated
    public class VersionNumber
    extends java.lang.Object
    implements java.lang.Comparable<VersionNumber>
    Deprecated.
    Will be removed in Gradle 9.0.
    This class is only here to maintain binary compatibility with existing plugins.
    • Field Detail

    • Constructor Detail

      • VersionNumber

        public VersionNumber​(int major,
                             int minor,
                             int micro,
                             @Nullable
                             java.lang.String qualifier)
        Deprecated.
      • VersionNumber

        public VersionNumber​(int major,
                             int minor,
                             int micro,
                             int patch,
                             @Nullable
                             java.lang.String qualifier)
        Deprecated.
    • Method Detail

      • getMajor

        public int getMajor()
        Deprecated.
      • getMinor

        public int getMinor()
        Deprecated.
      • getMicro

        public int getMicro()
        Deprecated.
      • getPatch

        public int getPatch()
        Deprecated.
      • getQualifier

        @Nullable
        public java.lang.String getQualifier()
        Deprecated.
      • getBaseVersion

        public VersionNumber getBaseVersion()
        Deprecated.
      • compareTo

        public int compareTo​(VersionNumber other)
        Deprecated.
        Specified by:
        compareTo in interface java.lang.Comparable<VersionNumber>
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object other)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • version

        public static VersionNumber version​(int major)
        Deprecated.
      • version

        public static VersionNumber version​(int major,
                                            int minor)
        Deprecated.
      • scheme

        public static VersionNumber.Scheme scheme()
        Deprecated.
        Returns the default MAJOR.MINOR.MICRO-QUALIFIER scheme.
      • withPatchNumber

        public static VersionNumber.Scheme withPatchNumber()
        Deprecated.
        Returns the MAJOR.MINOR.MICRO.PATCH-QUALIFIER scheme.
      • parse

        public static VersionNumber parse​(java.lang.String versionString)
        Deprecated.