#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:
Filip Hrisafov 2022-01-29 09:24:56 +01:00
parent 5f4d355838
commit 464adc9143

View File

@ -145,7 +145,7 @@ import java.lang.annotation.Target;
* @author Gunnar Morling
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
@Retention(RetentionPolicy.CLASS)
public @interface DecoratedWith {
/**