Package org.gradle.util
Klasse GradleVersion
java.lang.Object
org.gradle.util.GradleVersion
- Alle implementierten Schnittstellen:
Comparable<GradleVersion>
Represents a Gradle version.
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract intstatic GradleVersioncurrent()Returns the current Gradle version.abstract GradleVersionThe base version of this version.abstract StringVeraltet.will be removed in Gradle 9.abstract GradleVersionVeraltet.will be removed in Gradle 9.abstract StringVeraltet.will be removed in Gradle 9.abstract StringReturns the string that represents this version.abstract booleanReturnstrueif this instance represent a snapshot version (e.g. 7.0-20210406233629+0000).abstract booleanisValid()Veraltet.will be removed in Gradle 9.static GradleVersionParses the given string into a GradleVersion.
-
Felddetails
-
URL
Veraltet.will be removed in Gradle 9.This field only kept here to maintain binary compatibility.- Siehe auch:
-
RESOURCE_NAME
Veraltet.will be removed in Gradle 9.This field only kept here to maintain binary compatibility.- Siehe auch:
-
VERSION_OVERRIDE_VAR
Veraltet.will be removed in Gradle 9.This field only kept here to maintain binary compatibility.- Siehe auch:
-
VERSION_NUMBER_PROPERTY
Veraltet.will be removed in Gradle 9.This field only kept here to maintain binary compatibility.- Siehe auch:
-
-
Konstruktordetails
-
GradleVersion
public GradleVersion()
-
-
Methodendetails
-
current
Returns the current Gradle version.- Gibt zurück:
- The current Gradle version.
-
version
Parses the given string into a GradleVersion.- Löst aus:
IllegalArgumentException- On unrecognized version string.
-
getVersion
Returns the string that represents this version.- Gibt zurück:
- this Gradle version in string format.
-
getBuildTime
Veraltet.will be removed in Gradle 9.This method only kept here to maintain binary compatibility. -
getRevision
Veraltet.will be removed in Gradle 9.This method only kept here to maintain binary compatibility. -
isSnapshot
public abstract boolean isSnapshot()Returnstrueif this instance represent a snapshot version (e.g. 7.0-20210406233629+0000).- Gibt zurück:
- Whether the current instance is a snapshot version
-
getBaseVersion
The base version of this version. For pre-release versions, this is the target version. For example, the version base of '7.0-rc-1' is '7.0'.- Gibt zurück:
- The version base
-
getNextMajor
Veraltet.will be removed in Gradle 9.This method only kept here to maintain binary compatibility. -
isValid
Veraltet.will be removed in Gradle 9.This method only kept here to maintain binary compatibility. -
compareTo
- Angegeben von:
compareToin SchnittstelleComparable<GradleVersion>
-