What is the difference in adding a dependency to compileOnly vs. adding to compileClasspath?
1 Like
You should not add anything to compileClasspath, it is only meant to aggregate other configurations. We’ll add a warning/error for this in the future.
Ah, great, I thought so, I just didn’t find anything about it in the docs, just that it is added alongside compile
and compileOnly
. Thanks.
We have a revamping of that user guide section planned. We’ll update the graph and its description to say more clearly what each configuration is meant for.
1 Like