how to upgrade Gradle version?

104 views
Skip to first unread message

Carlo Lupo

unread,
May 25, 2015, 5:25:52 AM5/25/15
to jenkins...@googlegroups.com
We are using since some weeks Gradle version 2.4 in our build scripts. But when we want upgrade the Gradle version used vai Jenkins at Jenkins' system page ("install from gradle.org"), it only displays the Gradle release candidates "2.4-rc-1" and "2.4-rc-2 in the combo box. Jenkins obviously doesn't know from Gradle version "2.4".

So my question is: how are the entries of this combo box updated? Is Jenkins looking at "gradle.org" and does somehow not detect the latest release version? How can we influence what is displayed in the combo? We do not wanna see all those old versions (which are only of some historic interest).

Christopher Orr

unread,
May 26, 2015, 7:33:31 AM5/26/15
to jenkins...@googlegroups.com
There is an automated process which updates these versions daily (from
gradle.org in this case), but unfortunately that process is currently
broken.

The scripts are here:
https://github.com/jenkinsci/backend-crawler

The infrastructure bug tracking the brokenness is here:
https://issues.jenkins-ci.org/browse/INFRA-225

Regards,
Chris

corneil....@gmail.com

unread,
May 26, 2015, 8:01:07 AM5/26/15
to jenkins...@googlegroups.com
An alternate way to ensure you use a specific version of Gradle that may not be available yet is to add the gradle wrapper to your project and to configure the Jenkins plugin to use the wrapper. https://docs.gradle.org/current/userguide/gradle_wrapper.html

If you don't want the wrapper to be downloaded from the internet by your build you can place the gradle distribution in a binary repository or on a server in your network and set the url in the gradle-wrapper.properties.
Then you don't have to make changes to the Jenkins configuration when upgrading in future, you just need to update the gradle-wrapper.properties.

Regards
Corneil


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/55645A04.1040802%40orr.me.uk.

For more options, visit https://groups.google.com/d/optout.

Richard Bywater

unread,
May 26, 2015, 5:22:28 PM5/26/15
to jenkins...@googlegroups.com
+1 to using Gradle wrappers. Given how much Gradle build files can be affected by version changes, allowing the two to be out of sync is likely to have problems down the road :)

Richard.

Reply all
Reply to author
Forward
0 new messages