title: How do I add 3rd party libraries with gradle?
body: <p>I am trying to learn gradle from <a href="http://spring.io/guides/gs/gradle/" rel="nofollow">this site</a> but I do not know how to add a source for 3rd party libraries. Should I add the following to the <code>build.gradle</code> file? </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>apply plugin: 'java'
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      compile "joda-time:joda-time:2.2"
  }
  
  jar {
      baseName = 'gs-gradle'
      version =  '2.3'
  }</code></pre>
  </div>
  </div>
  </p>