Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOE Sync 2019-11-25 #792

Merged
merged 1 commit into from
Nov 25, 2019
Merged

MOE Sync 2019-11-25 #792

merged 1 commit into from
Nov 25, 2019

Conversation

nick-someone
Copy link
Member

This code has been reviewed and submitted internally. Feel free to discuss on
the PR, and we can submit follow-up changes as necessary.

Commits:

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/language-java/src/main/java/org/gradle/api/internal/tasks/compile/processing/AggregatingProcessingStrategy.java#L49-L56

RELNOTES=AutoService: Use CLASS retention to support Gradle aggregating incremental annotation processors

5eebb1b

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/language-java/src/main/java/org/gradle/api/internal/tasks/compile/processing/AggregatingProcessingStrategy.java#L49-L56

RELNOTES=`AutoService`: Use `CLASS` retention to support Gradle aggregating incremental annotation processors

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=282380619
@nick-someone nick-someone merged commit 28a2c79 into master Nov 25, 2019
@nick-someone nick-someone deleted the sync-master-2019/11/25 branch November 25, 2019 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants