-
Notifications
You must be signed in to change notification settings - Fork 41.2k
spring-boot-configuration-processor prevents builds from being incremental when source retention annotations are present #23580
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
Comments
Thanks for the sample. This is due to the annotation processor stating that it supports all types of annotations. The processor used to only support We do now have some usage of I suspect it's quite unusual for a project to have additional configuration property metadata and no usage of One option would be to require the use of an annotation processor argument to opt in to supporting all annotation types. This argument could then be set by projects that have an additional metadata file but no usage of |
We'll list |
We also generate metadata for |
We generate metadata for `@Endpoint` annotated types so the annotation processor need to indicate that it supports the endpoint annotation. See gh-23580
|
Info
Gradle's incremental build doesn't work when using annotations with source retention (
@Override
,@Generated
, Lombok's@Data
) andspring-boot-configuration-processor
(removing it solves the problem).Spring Boot version: 2.4.0-M3
Example: https://github.com/ve2m/spring-boot-gradle-incremental-problem
Reproduction steps
git clone [email protected]:ve2m/spring-boot-gradle-incremental-problem.git
./gradlew compileJava --info
Make some changes to
Entity
./gradlew compileJava --info
, note that there is a message saying:Comment out
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
inbuild.gradle
Repeat steps 2-4 and note that incremental build works.
The text was updated successfully, but these errors were encountered: