Archinamon / android-gradle-aspectj

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

Compile error with Gradle 4.0 #55

Closed HaukeRa closed 6 years ago

HaukeRa commented 7 years ago

While switching over to Android Studio 3.0, which uses Gradle 4.0 compiling fails with the following setup.

As far as I understand Gradle 4.0 does not build .jar files anymore to speed up builds. Instead it works on .class files of dependencies directly.

The com.archinamon.aspectj plugin depends on the jar files, which makes the build (actually already the configuration phase) fail.

Example project: https://github.com/HaukeRa/Archinamon-GradleAspectJ-Android-FailureTestProject

Archinamon commented 7 years ago

Thanks for reporting! I'll take a look as soon as I'll have some time.

Archinamon commented 6 years ago

Hello again!

Please, try out my adapted code for gradle plugin 3.0.0-beta7: classpath 'com.archinamon:android-gradle-aspectj:3.1.1-gradleApiBeta'

Sources available in separate branch (temporary): https://github.com/Archinamon/GradleAspectJ-Android/tree/feature/gradleApiBeta_3.0.0-beta7