I have always done variant builds using submodules and fiddling with the source sets so all modules used the same input source and just build it differently. The Android plugin has flavours that do this. Is something like this coming (has come) to general Gradle, or is using submodules still the right thing to do?
Related Topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Does the upcoming variants implementation match that of Android's gradle plugin? | 4 | 2525 | March 24, 2015 | |
What are Variants and Attributes, and how can they be used? | 2 | 510 | March 14, 2018 | |
Build type support for Java modules in Android project | 1 | 1447 | February 19, 2014 | |
Using maven plugin in android project with multiple build variants | 0 | 749 | September 30, 2016 | |
Java variant builds & JDK9+ modules | 0 | 317 | September 15, 2020 |