title: Gradle: What is the difference between classpath and compile dependencies?
body: <p>When adding dependencies to my project I am never sure what prefix I should give them, e.g. <code>"classpath"</code> or <code>"compile".</code> </p>
  
  <p>For example, should my dependencies below be compile time or classpath? </p>
  
  <p>Also, should this be in my <em>applications</em> build.gradle or in the <em>module</em> specific build.gradle?</p>
  
  <p><strong>Current build.gradle (at application level):</strong></p>
  
  <pre><code>apply plugin: 'java'
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      compile 'org.hibernate:hibernate-core:5.0.5.Final'
      compile 'mysql:mysql-connector-java:5.1.38'
  } 
  </code></pre>