compile
specifies an external dependency for the project you are building. compile
requires group, name, and version. These can either be broken out or specified using the short form “group:name:version”. see Gradle Dependency Management Basics
The buildscript
block declares the dependencies of your gradle build itself while the normal dependencies block declares the dependencies of the project you are going to build