I have a multi-project build with several subprojects and I want to use the gradle wrapper.
What is the idiomatic way to do this?
Should I configure the shell in each subproject by adding the following code in build.gradle to the root directory?
allprojects { task wrapper(type: Wrapper) { gradleVersion = '2.2' } }
But then I check all the files gradlew.bat , gradlew.sh , gradle/wrapper/gradle-wrapper.jar , etc. from all subprojects to version control? This seems inefficient, but if I do not, how can I execute ./gradlew.sh in the subprojects directory? What is the preferred way to use gradle wrapper in a subproject?
Do developers just use the gradle installed on the file system for this case?
The most important question is the first: what is the idiomatic way to do this?
gradle
Jason
source share