What is the difference in adding a dependency to compileOnly vs. adding to compileClasspath?


(Björn Kautler) #1

What is the difference in adding a dependency to compileOnly vs. adding to compileClasspath?


(Stefan Oehme) #2

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.


(Björn Kautler) #3

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.


(Stefan Oehme) #4

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.