GradleVersion

abstract class GradleVersion : Comparable<T> (source)

Represents a Gradle version.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val RESOURCE_NAME: String = "/org/gradle/build-receipt.properties"
This field only kept here to maintain binary compatibility.
Link copied to clipboard
val URL: String = "https://www.gradle.org"
This field only kept here to maintain binary compatibility.
Link copied to clipboard
val VERSION_NUMBER_PROPERTY: String = "versionNumber"
This field only kept here to maintain binary compatibility.
Link copied to clipboard
val VERSION_OVERRIDE_VAR: String = "GRADLE_VERSION_OVERRIDE"
This field only kept here to maintain binary compatibility.

Functions

Link copied to clipboard
abstract fun compareTo(o: GradleVersion): Int
Link copied to clipboard
Returns the current Gradle version.
Link copied to clipboard
The base version of this version.
Link copied to clipboard
abstract fun getBuildTime(): String
This method only kept here to maintain binary compatibility.
Link copied to clipboard
abstract fun getNextMajor(): GradleVersion
This method only kept here to maintain binary compatibility.
Link copied to clipboard
abstract fun getRevision(): String
This method only kept here to maintain binary compatibility.
Link copied to clipboard
abstract fun getVersion(): String
Returns the string that represents this version.
Link copied to clipboard
abstract fun isSnapshot(): Boolean
Returns true if this instance represent a snapshot version (e.g.
Link copied to clipboard
abstract fun isValid(): Boolean
This method only kept here to maintain binary compatibility.
Link copied to clipboard
open fun version(version: String): GradleVersion
Parses the given string into a GradleVersion.