Open scott-pollom opened 1 year ago
Hi. Could you please write your androidx.*
project dependencies?
Sorry for ambiguity, I'm building the androidx project itself.
To repro, you can do the following:
./gradlew :datastore:datastore-preferences-proto:extractIncludeTestProto --scan
$OUT_DIR/androidx/datastore/datastore-preferences-proto/build/classes/kotlin/main/foo
./gradlew :datastore:datastore-preferences-proto:extractIncludeTestProto --scan
The build scan from step 3 will show that the task was not UP-TO-DATE because of the empty directory.
This is much better. Is this reproducible on the androidx-main
branch?
yes
@scott-pollock great, thanks. Will investigate on this weekend.
Thanks!
This is the expected behavior at the moment. Bad behavior, but true. Will be fixed in the future, somewhere in version 0.10.*
.
Extract include
tasks for test sources depends on the main classpath that is passed as input to the task.
Any updates on the fixes?
Are we still planning to fix this?
ProtobufExtract task is not UP-TO-DATE when irrelevant input directories are added or removed.
See example below from AndroidX build:
This is surprising because
ProtobufExtract.getInputProtoFiles()
should only contain proto files.protobuf-gradle-plugin version: 0.9.0