groovy / groovy-android-gradle-plugin

A Gradle plugin to support the Groovy language for building Android apps
Apache License 2.0
850 stars 116 forks source link

Is it possible to use Java's annotation processing with groovy code? #100

Closed malazbw closed 8 years ago

malazbw commented 8 years ago

I have annotation processor in java and i want to run it on Groovy code. When i compile groovy code using groovy compiler using Netbeans, i don't get generated sources i am using groovy-all-2.4.5 I have a java project and i put groovy files in it

AndrewReitz commented 8 years ago

Please leave issues open to submitting bugs or request to the groovy-android-gradle-plugin. This question would be better asked on forms such as stack overflow.

Closing as off topic.

blackdrag commented 8 years ago

But to answer the question.... The Groovy compiler itself does not offer any means to allow an annotation processor to run on groovy source code. There is an issue for this in the Groovy JIRA, but this would be a lot of work, for a small gain. See https://issues.apache.org/jira/browse/GROOVY-3361 for the issue. So unless Netbeans offers something unknown to me it should not be possible at the moment