is there a way to dynamically generate dependencie...
# gradle
a
is there a way to dynamically generate dependencies for a project on the fly?
v
Maybe if you elaborate a bit more on what you mean. Me at least, I didn't understand.
a
sure, so lets say we have:
Copy code
project/
    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.