So, in this case, in the build.gradle file in the dependency structure I have
dependencies { compile 'A' compile 'B' }
However, I want people to be able to compile either just A or just B, is there a way to find out if the A dependency was used, returning a global boolean that could be used somewhere else, in the gradle task?
so in other words
if (A was compiled) { compile A; } else { exclude A; }
android android-gradle groovy build.gradle gradle
Alex goja
source share