Fixed
Status Update
Comments
gh...@google.com <gh...@google.com>
je...@google.com <je...@google.com>
cm...@google.com <cm...@google.com> #2
+Alex who was looking in to something similar
cm...@google.com <cm...@google.com> #3
This is fixed in
Description
DESCRIBE THE ISSUE IN DETAIL:
Accessing the sources of a variant in the
build.gradle.kts
makes the lazy initializer initialize too early inComponentImpl
. ThegenerateBuildConfigTask
is not yet set and this causes thedefaultJavaSources
function inComponentImpl
to skip adding the build config to the source set. The same applies to aidl/renderscript/databinding/etc.STEPS TO REPRODUCE:
/Users/kemp/git/gradle-recipes/Kotlin/manifestTransformerTest/app/build/generated/source/buildConfig/debug
is printed to the console/Users/kemp/git/gradle-recipes/Kotlin/manifestTransformerTest/app/build/generated/source/buildConfig/debug
is no longer printed to the console (as well as others)Studio Build: 2021.2.1 Patch 1 Version of Gradle Plugin: 7.2 Version of Gradle: 7.4.2 Version of Java: 11.0.12 OS: Mac OSX 12.4