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 | |
|---|---|---|---|---|
| Java variant builds & JDK9+ modules | 0 | 325 | September 15, 2020 | |
| Build type support for Java modules in Android project | 1 | 1482 | February 19, 2014 | |
| Right way to build some version of project | 1 | 420 | October 15, 2013 | |
| Does the upcoming variants implementation match that of Android's gradle plugin? | 4 | 2563 | March 24, 2015 | |
| Making gradle wrapper versions same for subprojects | 3 | 5780 | April 7, 2018 |