buildscript {
classpath
}
dependencies{
compile
}
First of all, I assume you meant to include the “dependencies” block between “buildscript” and “classpath”.
The “buildscript” block only controls dependencies for the buildscript process itself, not for the application code, which the top-level “dependencies” block controls.
For instance, you could define dependencies in “buildscript/classpath” that represent Gradle plugins used in the build process. Those plugins would not be referenced as dependencies for the application code.
Read the Gradle User Guide for more information (the PDF is easy to search).
2 Likes