lex
02/12/2018, 5:45 AMgildor
02/12/2018, 5:46 AMarrayOf -> listOf?gildor
02/12/2018, 5:47 AM+= heregildor
02/12/2018, 5:49 AMoptions.compilerArgs.add("someArg") or something like addAlllex
02/12/2018, 5:50 AMlex
02/12/2018, 5:50 AMgildor
02/12/2018, 5:51 AMlistOf insteadgildor
02/12/2018, 5:51 AMgildor
02/12/2018, 5:51 AMgildor
02/12/2018, 5:51 AMlistOf alwayslex
02/12/2018, 5:52 AMlex
02/12/2018, 5:52 AMlex
02/12/2018, 5:54 AMplus also chosen? 🙂lex
02/12/2018, 5:55 AMplusAssign is inline?gildor
02/12/2018, 5:57 AMlex
02/12/2018, 6:00 AMgildor
02/12/2018, 6:00 AMoptions.compilerArgs (call getCompilerArgs) + your arguments and call setCompilerArgs with a new list as argument
2. Or just call getCompilerArgs and add elements to existing listlex
02/12/2018, 6:01 AMgildor
02/12/2018, 6:02 AMgildor
02/12/2018, 6:03 AMadd, addAll works not for all the apis of Gradle and especially third-party plugins.
Many API return defence copy of list from getter, so you always should check implementation, or use setter, but in this case you can override some default values