Copy task not working as expected

I am currently using gradle 6.9. I have a dependency that is declared via compile. And a copy task that copies from configurations.runtime. But when I migrate from compile to implementation (or api). That copy task stops copying that dependency jar, despite that dependency being on runtime classpath. Am I doing something wrong?

Taken from The Java Plugin :


By moving the dependency from compile to implementation it is no longer included as part of runtime. The copy task should be using configurations.runtimeClasspath.

1 Like