# GradleVersion

abstract class GradleVersion : Comparable<T> (source)

Represents a Gradle version.

## Constructors

GradleVersion
Link copied to clipboard
constructor()

## Properties

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

## Functions

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