title: How can I get mybatis-spring using gradle?
body: <p>How can I download mybatis-spring by using gradle? Because I got message below message when I use "<strong><code>gradle eclipse</code></strong>". <code>"Could not resolve all dependencies for configuration ':classpath'. &gt; Could not find org.mybatis:mybatis-spring:1.2.2."</code></p>
  
  <p>This is my <code>build.gradle</code> file.</p>
  
  <pre><code>buildscript {
      repositories {
          mavenLocal()
      }
      dependencies {
          classpath("org.mybatis:mybatis-spring:1.2.2")
      }
  }
  
  apply plugin: 'java'
  apply plugin: 'eclipse'
  
  
  jar {
      baseName = 'mylib'
      version =  '0.1.0'
  }
  
  repositories {
      mavenCentral()
  }
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      compile("org.mybatis:mybatis-spring:1.2.2")
      testCompile("junit:junit:4.11")
  }
  
  task wrapper(type: Wrapper) {
      gradleVersion = '1.8'
  }
  </code></pre>