-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add support for Gradle Apt Plugin #134
Comments
There is also a What if you add: dependencies {
apt "io.vertx:vertx-codegen:$vertxVersion:processor"
// (...)
} (or even just as a |
That didn't make any difference, but I do have a suggested fix that I cribbed from antlr:
Add above to ServiceProxyProcessor (or better yet the parent, CodeGenProcessor).. The issue stems from this annotation being present on the parent class CodeGenProcessor:
But annotations are not inherited, so default RELEASE_6 is assigned. |
Gradle 4.6 has a new annotationProcessor configuration that also emits this warning. |
I already have another package that uses annotation processing (immutables), and it doesn't play nicely with the documented Gradle solution for adding annotation processing.
immutables plugs in directly to the Gradle Apt Plugin (https://github.com/tbroyer/gradle-apt-plugin)
It would be nice if the CodeGen worked similarly for vertx.. I have it working with Warnings only via:
This generates both sets of classes but my gradle output is littered with warnings:
warning: No SupportedSourceVersion annotation found on io.vertx.serviceproxy.ServiceProxyProcessor, returning RELEASE_6.
warning: Supported source version 'RELEASE_6' from annotation processor 'io.vertx.serviceproxy.ServiceProxyProcessor' less than -source '1.8'
I have java code and source compatibility set to 1.8 but can't figure out how to feed this in to avoid the warning. Hopefully this is just a documentation issue, would be helpful to add this as an option to the documentation for anyone else using the apt plugin.
The text was updated successfully, but these errors were encountered: