Does use of the gradle version in the wrapper task eliminate the need to use gradlew?
wrapper {
gradleVersion = '4.10.2'
}
task foo {
println "...bar"
}
The wrapper seems to be automatically executed as part of the "Configure project" phase and, if so, seems to be a "cleaner" way to manage this (i.e., less files to deal with, embedded in the actual gradle build script, etc.).
New to Gradle, just trying to figure things out...
Add...
I added the "foo" task to clarify my point of confusion.
1 - I am executing the script using "gradle foo"
2 - In the process, I note that the "wrapper" task is automatically invoked
My point-of-confusion is that it seemed that including the wrapper entry would force the right version of Gradle to be used (i.e., why else would the wrapper task be automatically invoked). On inspection, it appears that including the version in the wrapper task is another way to get the version into Gradle's properties file (vice providing it on the command line when generating the wrapper).
Live-and-learn, thanks for dealing with this question.