Updated docs to add compilerArgs instead of replacing them.

When configuring MapStruct compilerArgs *add* them, no *replace*
This commit is contained in:
Marcel Overdijk 2019-10-27 12:50:06 +01:00 committed by Filip Hrisafov
parent 076f3ba839
commit 327730127b

View File

@ -210,7 +210,7 @@ When invoking javac directly, these options are passed to the compiler in the fo
----
...
compileJava {
options.compilerArgs = [
options.compilerArgs += [
'-Amapstruct.suppressGeneratorTimestamp=true',
'-Amapstruct.suppressGeneratorVersionInfoComment=true',
'-Amapstruct.verbose=true'
@ -296,4 +296,4 @@ If the `@Generated` annotation is not available, MapStruct will detect this situ
=====
In Java 9 `java.annotation.processing.Generated` was added (part of the `java.compiler` module),
if this annotation is available then it will be used.
=====
=====