Flavors are just regular Gradle tasks, so you can simply specify that task for the Gradle Runner step: