-
Notifications
You must be signed in to change notification settings - Fork 126
MissingConfigurationProcessorRule generates a false positive when the annotationProcessor configuration is used #266
Comments
(comment in Pivotal Tracker added by Kris De Volder:) I've created a sample gradle project that reproduces this issue. Attaching it here. Import project as 'existing ecipse project' into STS 3.9.x (haven't tried STS 4, but i'm guessing its the same). A warning is shown in the 'MyProps' class although the annotation processor works when run from CLI. Note that BuildShip has no support yet for actually properly configuring JDT APT and so props metadata is not actually generated in Eclipse. This also makes it rather hard for us to verify whether the processor is present (we can not see it in Eclipse project). So I think we should wait for BuildShip to implement proper support for annotation processor configuratiion to allow for this rule to do proper validation. In the mean time our best option is probably to disable verification of this rule for Gradle projects. See:
|
(comment in Pivotal Tracker added by Kris De Volder:) Confirmed. It shows in STS 4 too. |
This validation rule is disabled for gradle projects now, to avoid false positives. See: #266
(comment in Pivotal Tracker added by Kris De Volder:) Disabled the rule for projects with Gradle Buildship nature. Should keep an eye on the tickets in gradle / buildship for providing support to configre JDT APT automatically. If/when they do we can try to re-instate the validation of this rule and make it check classpath as well as processor path. |
(comment in Pivotal Tracker added by Kris De Volder:) Delivering, verified it with STS 4 snapshot distro. |
See spring-projects/spring-boot#12316 (comment) for details.
The text was updated successfully, but these errors were encountered: