build.gradle: compile group vs compile, buildscript, classpath : <p>What is the difference between "compile group" and "compile"? Just another way to define a dependency?</p>

<p>Ex:</p>

<pre><code>compile group: 'org.slf4j', name: 'slf4j-jcl', version: '1.7.21'
</code></pre>

<p>And i think this also will work:</p>

<pre><code>compile("org.slf4j:slf4j-jcl:1.7.21")
</code></pre>

<p>Why do i have the declare <code>mavenCentral()</code> again and another dependencies block inside the buildscript block?</p>

<pre><code>buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.0.RELEASE")
    }
}
</code></pre>

<p>From my point of view, when you compile something it will be in your classPath?</p>
