uPhyca / gradle-android-aspectj-plugin

A Gradle plugin which enables AspectJ for Android builds.
Apache License 2.0
279 stars 55 forks source link

Root package of generated source files moved to project root #9

Closed jlchoike closed 9 years ago

jlchoike commented 9 years ago

After adding your plugin to my project, I noticed that the generated source files located in build/generated/source/apt was copied to the project root. Before adding your plugin, my root package of the generated source (com) was only present in the generated source directory, but now I am find it in the project root.

FYI - I noticed the same behavior with the Maven AspectJ plugin. Is this something specific to the compiler, or is it a plugin issue? Please let me know what compiler options I have missed that lead to this behavior. Thanks!

jlchoike-DL commented 9 years ago

@esmasui are you familiar with why ajc copies source files to the build working directory?

esmasui commented 9 years ago

@jlchoike-DL I have never seen the problem. please send me the entire project to represent the issue?

jlchoike-DL commented 9 years ago

Disregard, I think this issue is not related to your plugin, and has to do with the fact that Dagger source is generated in a non-standard location. AJC is copying the code to the build's working directory.

On Fri, Feb 13, 2015 at 12:20 AM, Sosuke Masui notifications@github.com wrote:

@jlchoike-DL https://github.com/jlchoike-DL I have never seen the problem. please send me the entire project to represent the issue?

— Reply to this email directly or view it on GitHub https://github.com/uPhyca/gradle-android-aspectj-plugin/issues/9#issuecomment-74206797 .

Jan Choike

Application Development - Detroit Labs

1.248.629.0862

jan.choike@detroitlabs.com

More: http://detroitlabs.com Blog: http://detroitlabs.com/blog Twitter: http://twitter.com/detroitlabs Facebook: http://facebook.com/detroitlabs

tapasyakore commented 9 years ago

@jlchoike-DL how did you solve this ?

esmasui commented 9 years ago

@tapasyakore please try latest version, 0.9.13

esmasui commented 9 years ago

Doesn't reproduce the latest version of the plugin.