Facade class that provides information about the running gradle version and the latest versions of the different gradle release channels. The information is queried from the official gradle api via HTTPS during object construction.
| Constructor and description |
|---|
GradleUpdateChecker
(boolean enabled) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
GradleUpdateChecker.ReleaseStatus |
getCurrentGradleVersion()@return An instance of ReleaseStatus explaining the update check for the latest version on the 'current' gradle release channel. |
|
GradleUpdateChecker.ReleaseStatus |
getNightlyGradleVersion()@return An instance of ReleaseStatus explaining the update check for the latest version on the 'nightly' gradle release channel. |
|
GradleUpdateChecker.ReleaseStatus |
getReleaseCandidateGradleVersion()@return An instance of ReleaseStatus explaining the update check for the latest version on the 'release-candidate' gradle release channel. |
|
static Available |
getRunningGradleVersion()@return An instance of com.github.benmanes.gradle.versions.updates.gradle.GradleUpdateChecker.ReleaseStatus.Available containing a org.gradle.util.GradleVersion representing the version of the running gradle instance |
|
boolean |
isEnabled()@return if the check for Gradle updates was enabled and, if so, the versions were fetched. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |