runningcode / gradle-doctor

The right prescription for your Gradle build.
http://runningcode.github.io/gradle-doctor
Apache License 2.0
723 stars 46 forks source link

Phone/Wear Modules: Did you really mean to run all these? #216

Closed zoltish closed 2 years ago

zoltish commented 2 years ago

Since including a wear module in my project, Ill run into this message every once in a while. The message is clear and I can understand why it comes up; but Id love for a way to suppress/disable it!

My wear module adds <1 second to the overall build time, and whenever I intentionally want to "build the entire project"; its usually coupled with some refactoring work where both my phone & wear modules will require some tweaks. The build project tool just makes it a lot easier as it mentions all the spots where I need to make tweaks in one place.

Assembling phone & wear separately works, but then its just way faster to temporarily disable the plugin, build the entire project, and re-enable it.

=============================== Gradle Doctor Prescriptions ============================================
| Did you really mean to run all these? [task ':app:phone:assembleDebug', task ':app:wear:assembleDebu |
| g']                                                                                                  |
| Maybe you just meant to assemble/install one of them? In that case, you can try                      |
|   ./gradlew phone:assembleDebug                                                                      |
| Or did you hit "build" in the IDE (Green Hammer)? Did you know that assembles all the code in the en |
| tire project?                                                                                        |
| Next time try "Sync Project with Gradle Files" (Gradle Elephant with Arrow).                         |
========================================================================================================
runningcode commented 2 years ago

You can set allowBuildingAllAndroidAppsSimultaneously = true in the configuration options to disable this warning.

zoltish commented 2 years ago

I dont know how I missed that, but Im grateful that you pointed me in its direction. Thank you!