Monday, January 30, 2017

Keep Gradle uptodate

One of the downsides of Gradle is it takes a lot of time to build for big projects. Gradle team works on this problem with continuos efforts. So that means when you update Gradle, this means it could get better with increasing the speed of the build.

How?
- Check the latest Gradle distribution at: https://services.gradle.org/distributions/
-- At the time of this post, It is : gradle-3.4-rc-1-all.zip
-- Invoke with CmdLine: ./gradlew -wrapper -gradle-version=3.4-rc-1
-- Check the config file in <project>/gradle/wrapper/gradlewrapper.properties 
is changed to 
"distributionUrl=https\://services.gradle.org/distributions/gradle-3.4-rc-1-all.zip"

Happy build times! :)

No comments: