Hi,
Currently we rely on some output from java annotation processor during the compilation phase, but the issue is that the output is not bundled into the build cache, and it is only available when the actual compilation takes place, which means I need to force it by using --rerun-tasks
.
E.g.
android {
defaultConfig {
javaCompileOptions {
annotationProcessorOptions {
arguments = ["deepLinkDoc.output": "${buildDir}/doc/deeplinks.txt".toString()]
}
}
}
}
Typically we can add outputs.files
to mark the output to be cached in a task. However, we do not own this java compile task in this case. How should I go about making "${buildDir}/doc/deeplinks.txt"
in this case to be cached?
Thanks,
Yi