Aaron Todd
04/20/2021, 5:17 PMVampire
04/20/2021, 5:19 PMAaron Todd
04/20/2021, 8:25 PMproject/
build.gradle.kts
generated-sources/
normal-sources/
...
where`generated-sources` is some sourceset that is generated at build time. It also has dependencies that aren't known until generated (this is a simplified example of course to illustrate the point).
I'm wondering if there is anyway to dynamically configure the dependencies in build.gradle.kts
based on the generation of generated-sources
(let's assume we have easy access to a task that spits out a file or something).
I have been able to set it up such that the build
task (really compileKotlin
) depends on the generation of generated-sources
but haven't figured out how to do the same for dependencies.