Archinamon / android-gradle-aspectj

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

Invoke Aspects in multi module project #89

Closed sheelaknaik closed 5 years ago

sheelaknaik commented 5 years ago

Hi,

Does this plugin support weaving aspects in a multi module project? For example, if the modules in the project are libraries, how can we weave our aspects in those modules too? Currently, I see it working at app level only.

Please suggest.

Archinamon commented 5 years ago

Hello! Sorry for late answer. If your aspects live in app module, it will have access to all your local modules due to appearing them in android's transformation stream and in classpath. It should work without any workarounds. But I did not test it this way, please try it in the simpliest way :)

If it won't. You can simply add in config closure in build.gradle parameter includeJar describing your sub-modules you want to augment with aspects.

sheelaknaik commented 5 years ago

Thanks @Archinamon , it solves the issue