mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#2682 Change RetentionPolicy of @DecoratedWith
to CLASS
In some circumstances (used with other types of aggregating processors, e.g. Spring) the Gradle incremental compilation works correctly only for classes annotated with the `CLASS` or `RUNTIME` retention policy. The `@DecoratedWith` is the only annotation from MapStruct that was `SOURCE` retention. With this commit we are changing its retention policy in order for better compatibility with the Gradle Incremental compilation
This commit is contained in:
parent
5f4d355838
commit
464adc9143
@ -145,7 +145,7 @@ import java.lang.annotation.Target;
|
||||
* @author Gunnar Morling
|
||||
*/
|
||||
@Target(ElementType.TYPE)
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
public @interface DecoratedWith {
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user