8 months ago
When we are building and running a Java project there are two classpaths involved:
When we configure Gradle dependencies all we really doing is configuring which dependencies should appear on which classpath.
Given there are only two classpaths, Gradle provides three options to declare our dependencies:
We must use implementation rather than compile for dependencies, as compile is now deprecated or removed in the case of Gradle 7+.
Investment Banker at Goldman Sachs
8 months ago