I have a Gradle build with over 30 sub projects. In Android Studio I can build it all with no problem. However if I want to run a task on a single module, it executes that task on all modules, which takes a lot of time and gets in the way when debugging. For instance if I want to run my unit tests on a single sub-project, Android Studio executes the test task on all 38 modules that are defined in my project. This is killing me since the module I'm interested in is way down in the order of execution.
Is there some way to get Intellij/AS to execute the task only on the module that I've selected? I've tried this both from the Gradle projects window and also as a run configuration for the specific project I want to test.