When adding dependencies to my project I am never sure what prefix I should give them, e.g. \"classpath\"
or \"compile\".
For example, should
I'm going to guess that you're referencing compile
and classpath
within the dependencies {}
block. If that is so, those are dependency Configurations.
A configuration is simply a named set of dependencies.
The compile
configuration is created by the Java plugin. The classpath
configuration is commonly seen in the buildSrc {}
block where one needs to declare dependencies for the build.gradle, itself (for plugins, perhaps).