task wrapper(type: Wrapper) { gradleVersion = '2.10' //we want gradle 2.10 to run this project }
gradle wrapper
References
https://www.mkyong.com/gradle/how-to-use-gradle-wrapper/
https://docs.gradle.org/current/userguide/gradle_wrapper.html
https://docs.gradle.org/current/dsl/org.gradle.api.tasks.wrapper.Wrapper.html