I have a Gradle-managed multi-project setup that relies on the new Java 8 -parameters
compiler flag. I need 2 ways of including the compiler flag:
Answer from @Crazyjavahacking is correct
Also, check that you doesn't redifine it, like me, in a subproject that uses others args (mapstruct in my case) :
options.compilerArgs = ['-Amapstruct.defaultComponentModel=spring'] // do not do this
Always append the args options.compilerArgs << '-Amapstruct.defaultComponentModel=spring'
Hope it can save some time to someone else, i personnaly lost 2 hours since i totally forgot this line in the subproject and was concentrating on the main build.gradle