mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
Updated docs to add compilerArgs instead of replacing them.
When configuring MapStruct compilerArgs *add* them, no *replace*
This commit is contained in:
parent
076f3ba839
commit
327730127b
@ -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.
|
||||
=====
|
||||
=====
|
||||
|
Loading…
x
Reference in New Issue
Block a user