Assigned
Status Update
Comments
go...@jakewharton.com <go...@jakewharton.com> #2
Disregard - after adding
enableUnitTestCoverage = false
enableAndroidTestCoverage false
Thinks started to work again.
But for what it is worth - the error message could have been more helpful.
enableUnitTestCoverage = false
enableAndroidTestCoverage false
Thinks started to work again.
But for what it is worth - the error message could have been more helpful.
Description
This is a follow-up from issue 249468390 which was incorrectly closed. Feel free to dupe this on that issue only if you also re-open it.
Given a source-generating task provider, adding it to an
AndroidSourceSet
does NOT invoke the task prior to compilation, leading to the generated sources not being included in compilation.This is not a problem with plain Java projects or Kotlin projects.
Attached is a minimally-reproducing sample which contains a source-generating task which is added directly to the main source set. It contains a unit test which depends on the generation task running and producing a file.
Build: AI-243.22562.218.2431.12894773, 202501091430
AS: Meerkat | 2024.3.1 Canary 9 AI-243.22562.218.2431.12894773, JRE 21.0.5+-12771278-b631.28x64 JetBrains s.r.o., OS Mac OS X(aarch64) v14.7.2, screens 3440x1440 (100%)
Gradle JDK: (default) JetBrains Runtime 21.0.5 - aarch64
NDK: latest from SDK: 27.0.12077973
CMake: latest from SDK: 3.22.1-g37088a8, from PATH: 3.31.4