Using Gradle wrapper (./gradlew.sh) with subprojects
You should just have the wrapper task outside of the allprojects block so you only have one gradlew.bat
, gradlew.sh
, and gradle/wrapper/gradle-wrapper.jar
at the top level of your project structure.
You can run the ./gradlew tasks --all
to verify the wrapper can see the subproject tasks
Or you can run the ./gradlew <subproject_name>:tasks
command to view just one subproject's tasks.