Fixed
Status Update
Comments
je...@google.com <je...@google.com> #2
fixed with Change-Id: Iaf43c10252d99b9e731d706c994e3778aeb560ea
No update yet.
fixed with Change-Id: Iaf43c10252d99b9e731d706c994e3778aeb560ea
Description
Steps to reproduce
./gradlew readVariantObjects
, which reads the new and old variant objects. We'll get:The above output shows 2 issues:
javaCompilation.annotationProcessor.argumentProviders
does not contain data provided through the old API. That is, theJavaCompile
task will not work correctly if users/plugins update the variant objects using the old API. This is an issue forjavaCompilation.annotationProcessor.argumentProviders
, I'm not sure if there are more APIs having this issue.Relevant source code in AGP
The above code + Gradle's implementation of
List/MapProperty
mean that updates to the OLD variant object will be forwarded to the NEW variant object, but not vice versa. ForargumentProviders
, updates are not forwarded in either direction.