One other thing: does this also account for flavorGroups? @pandemona do you know if this is sufficient?

From this code, classpath will essentially be something like this:

```
build/classes/flavor/release/
```