runningcode / gradle-doctor

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

Propose only assemble task in building multiple apps simultaneously prescription #223

Open eugene-krivobokov opened 2 years ago

eugene-krivobokov commented 2 years ago

Scenario:

  1. Add any task as a first one:
    
    val initialTaskNames: List<String> = project.gradle.startParameter.taskNames

project.gradle.startParameter.setTaskNames( listOf(":someUsefullRequiredTask") + initialTaskNames.toMutableList() )

doctor { allowBuildingAllAndroidAppsSimultaneously.set(true) }


2. Hit "Make Project" in IDE

Actual result:

Did you really mean to run all these? [task ':someUsefullRequiredTask', task ':app:assembleDebug', ... Maybe you just meant to assemble/install one of them? In that case, you can try
./gradlew someUsefullRequiredTask


Expected result:

Did you really mean to run all these? [task ':someUsefullRequiredTask', task ':app:assembleDebug', ... Maybe you just meant to assemble/install one of them? In that case, you can try
./gradlew :app:assembleDebug