I have a configuration that represents jars that get copied over into a plugins folder. This only makes sense inside the JVM project.
David Herman
01/14/2024, 11:49 PM
What I'd love to do is prevent autocompletion for the configuration from even working in a non-JVM target. But I would also be OK catching the issue at configuration time and throwing an exception.
David Herman
01/14/2024, 11:50 PM
(The receiving scope for both dependencies blocks are
KotlinDependencyHandler
which as far as I can tell don't have a way to get associated with the target they represent, but I could be missing something)
David Herman
01/15/2024, 12:17 AM
It would even be interesting to know if it's a test target or a main target, but I'd understand if that isn't possible.
David Herman
01/15/2024, 4:43 AM
I ended up thinking that maybe I was barking up the wrong tree here. I ended up creating a configuration you set in the top-level dependencies block, like this, side-stepping the whole issue: