Archinamon / android-gradle-aspectj

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

Tests source sets #16

Closed renaudcerrato closed 8 years ago

renaudcerrato commented 8 years ago

I wrote a small android library based on AspectJ, along with some unit tests but running ./gradlew library:check simply fails because none of my tests have been weaved: I can clearly see the AJC compiler running twice (on sourceSets.main, then on sourceSets.test).

On a previous Java projects, I had the same problem on that plugin, and it was easily solved by declaring: testAspectpath sourceSets.main.output to my dependencies.

Your plugin is missing a way to instruct him to include the main source sets.

Archinamon commented 8 years ago

I have strong plans to re-write all base on Transform API. This issue should be fixed by this migration :)

renaudcerrato commented 8 years ago

Glad to read that! Please keep me updated, as I'm heavily relying on your plugin!

Archinamon commented 8 years ago

Should be fixed with new release on Transform API.