Archinamon / android-gradle-aspectj

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

Aspects in another submodule can't resolve dependency. #106

Open Valllent opened 4 years ago

Valllent commented 4 years ago

I maintain old project. And all aspects run from gradle script. But this script can't work with Kotlin classes. And I decided to disable script and connect your library, but encounter with problem. All aspects in project are located in another libraries. Not in "{Project}/app/src/main/aspectj/...", but in "{Project}/Libraries/{Library}/src/main/aspectj/...". But this aspects must be weaved for main module. I added "apply plugin: 'com.archinamon.aspectj'" to library build.gradle-s. But it can't resolve dependencies from "app". For example I call custom Logger class from "app" module in aspect from "Libraries" and add dependency "import com.firm.utils.Logger;". I get exception "Logger cannot be resolved". Can I solve this problem without moving aspects in main module?