Skip to content

Commit

Permalink
Rollback 28a2c79
Browse files Browse the repository at this point in the history
*** Reason for rollback ***

breaks internal test

*** Original change description ***

Use CLASS retention for @autoservice

Gradle incremental aggregating processors require all processed annotations to have CLASS retention so that the incremental compiler can substitute a class file for a source file if the file is unchanged. With SOURCE retention, Gradle requires a full rebuild.

See:
#615
https://docs.gradle.org/6.0.1/userguide/java_plugin.html#aggregating_annotation_processors
https://github.com/gradle/gradle/blob/v6.0.1/subprojects/langua...

***

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=282462095
  • Loading branch information
ludoch authored and nick-someone committed Nov 26, 2019
1 parent 28a2c79 commit c347e3c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package com.google.auto.service;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.CLASS;
import static java.lang.annotation.RetentionPolicy.SOURCE;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
Expand All @@ -36,7 +36,7 @@
* </ul>
*/
@Documented
@Retention(CLASS)
@Retention(SOURCE)
@Target(TYPE)
public @interface AutoService {
/** Returns the interfaces implemented by this service provider. */
Expand Down

0 comments on commit c347e3c

Please sign in to comment.