Archinamon / android-gradle-aspectj

gradle plug-in adding supports of AspectJ into Android project
Apache License 2.0
364 stars 58 forks source link

Make /src/main/aspectj non obligatory #23

Closed mikekudzin closed 7 years ago

mikekudzin commented 7 years ago

Comrades, it there any reason of making this sources folder("/src/main/aspectj") mandatory? Ajc throws an error during build process: "[error] build config error: bad sourceroot: C;\git\Project\src\main\aspectj"

Use case describing this issue. I am going to precompile and distribute some aspects in binary form within an .aar package. Main idea: a developer can utilize functionality provided by aspects from .aar library in his app by adding GradleAspectJ plugin to their build.

I can provide fix for this but just want to be sure it won't contradict anything. Regards. //cc @Archinamon

Archinamon commented 7 years ago

Existence of sourceroot shouldn't be obligatory but aj files should be stored only within src/*/aspectj folders.