# Determine latest Gradle version programmatically

**URL:** <https://discuss.gradle.org/t/determine-latest-gradle-version-programmatically/21466>\
**Category:** Help/Discuss\
**Created:** [February 5, 2017, 4:12pm UTC](https://discuss.gradle.org/t/determine-latest-gradle-version-programmatically/21466 "2017-02-05T16:12:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefanneuhaus](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/stefanneuhaus/32/5229_2.png) [@stefanneuhaus](https://discuss.gradle.org/u/stefanneuhaus)\
**Post date:** [February 5, 2017, 4:12pm UTC](https://discuss.gradle.org/t/determine-latest-gradle-version-programmatically/21466/1 "2017-02-05T16:12:59Z")

</div>

The intent is to test (and regression test) a plugin in order to safeguard from incompatibilities with new Gradle releases. Though you can easily specify the “gradleVersion” with nebula-test, you still have to somehow determine these version numbers.

---

<div class="post-metadata">

**Author:** ![jjustinic](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/jjustinic/32/9005_2.png) [@jjustinic](https://discuss.gradle.org/u/jjustinic)\
**Post date:** [February 6, 2017, 6:05am UTC](https://discuss.gradle.org/t/determine-latest-gradle-version-programmatically/21466/4 "2017-02-06T06:05:10Z")

</div>

There’s a REST service that provides Gradle version information.

In addition to parsing a list of every release, you can directly get the latest release, nightly, and release candidate.

Start from at [https://services.gradle.org/versions/](https://services.gradle.org/versions/) and navigate to the data that you want.

---

<div class="post-metadata">

**Author:** ![stefanneuhaus](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/stefanneuhaus/32/5229_2.png) [@stefanneuhaus](https://discuss.gradle.org/u/stefanneuhaus)\
**Post date:** [February 6, 2017, 6:40am UTC](https://discuss.gradle.org/t/determine-latest-gradle-version-programmatically/21466/5 "2017-02-06T06:40:04Z")

</div>

Perfect! That is exactly what I was looking for. Thank you for your help!
