Is it possible to have build variants based on different source sets for a traditional Java app (NOT an Android project) in IntelliJ?
I'd like to use a feature like productFlavors that comes with the Android gradle plugin, but for a traditional Java application.
Example:
library_red -- HelloImpl.java
library_blue -- HelloImpl.java
library_common -- Hello.java
compiled library_blue -- Hello.class, HelloImpl.class
compiled library_red -- Hello.class, HelloImpl.class