Archinamon / android-gradle-aspectj

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

Cannot change dependencies of configuration after it has been included in dependency resolution #86

Closed divankov closed 5 years ago

divankov commented 5 years ago

Version 3.2.0, 3.3.0 with AGP 3.2.1, 3.2.0, 3.1.0, Gradle 4.5, 4.6, 4.8 all fail with

Cannot change dependencies of configuration after it has been included in dependency resolution

The problem seems to be in AspectJCompileTask reading/iterating javaCompiler.classpath which probably does something nasty inside DefaultConfigurableFileCollection.files or DefaultConfiguration$ConfigurationFileCollection.files

Note: some version configurations require small patches to fix NoSuchMethodError-s

Will try to reproduce in a small project

divankov commented 5 years ago

Seems to be a project issue. There were dependencies sections below the line applying aspectj plugin.