How do you use the wrapper from a subproject?


(andrew.oberstar) #1

Is there any way to use the wrapper from a subproject besides calling it with the relative path?

../gradlew build

I remember reading some discussion of the gradle command autodetecting the existence of the wrapper in a project and respecting it’s settings. Is that still on the plans?


(Peter Niederwieser) #2

Have a look at this script: https://github.com/cbeams/shell-scripts/blob/master/find-gradle

I expect that something like this will eventually ship with Gradle.


(andrew.oberstar) #3

Interesting. Thanks for the link.