title: Gradle fail to download Kotlin repository
body: <p>I'm building <code>Kotlin</code> simple Hello-Worl using <code>Gradle</code></p>
  
  <p>my <code>build.gradle</code> is:</p>
  
  <pre><code>/*
   * This build file was generated by the Gradle 'init' task.
   *
   * This generated file contains a commented-out sample Java project to get you started.
   * For more details take a look at the Java Quickstart chapter in the Gradle
   * user guide available at https://docs.gradle.org/4.3.1/userguide/tutorial_java_projects.html
   */
  
   // Apply the java plugin to add support for Kotlin
  
  apply plugin: 'kotlin'
  
  
  /*
  plugins {
      id "org.jetbrains.kotlin.jvm" version "1.1.60"
  }
  */
  
  buildscript {
      ext.kotlin_version = '1.1.60'
  // In this section you declare where to find the dependencies of your project
      repositories {
         mavenCentral()
        // jcenter()
      }
  // In this section you declare the dependencies for your production and test code
      dependencies {
          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
      }
  }
  
  sourceSets {
      main.kotlin.srcDirs += 'src/kotlin'
      main.resources.srcDirs += 'src/resources'
  }
  
      dependencies {
          compile 'org.slf4j:slf4j-api:1.7.7'
          compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
          testCompile 'junit:junit:4.12'
      }
  
      kotlin {
          experimental {
              coroutines 'enable'
          }
      }
  
      compileKotlin {
          kotlinOptions.suppressWarnings = true
      }
  
      compileKotlin {
          kotlinOptions {
              suppressWarnings = true
          }
      }
  </code></pre>
  
  <p>and <code>Main.kt</code> is:</p>
  
  <pre><code>fun main(args: Array&lt;String&gt;) {
      println("kotlin!")
  }
  </code></pre>
  
  <p>upon running <code>Gradle buil</code>, I got the below error:</p>
  
  <p><a href="https://i.stack.imgur.com/4V8x8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4V8x8.jpg" alt="enter image description here"></a></p>
  
  <p>Notes:
  - I'm new to <code>gradle</code> so built it as below 2 steps:</p>
  
  <p>Step 1:
  <a href="https://i.stack.imgur.com/pvVRr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pvVRr.jpg" alt="enter image description here"></a></p>
  
  <p>Step 2:
  <a href="https://i.stack.imgur.com/lj19d.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lj19d.jpg" alt="enter image description here"></a></p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>As per the first answer, I tried getting the files locally, I created another folder named <code>lib</code> and downloaded the *.jar files into it, so I got the <code>gradle.build</code> as below:</p>
  
  <pre><code>buildscript {
      ext.kotlin_version = '1.1.60'
      repositories {
          flatDir {
             dirs 'libs'
          }
      }
      dependencies {
          classpath fileTree(include: ['*.jar'], dir: 'libs')
          classpath files('kotlin-gradle-plugin-1.1.60.jar')
      }
  }
  
  apply plugin: 'kotlin'
  
  sourceSets {
      main.kotlin.srcDirs += 'src/kotlin'
      main.resources.srcDirs += 'src/resources'
  }
  
  dependencies {
      compile 'org.slf4j:slf4j-api:1.7.7'
      compile name: 'kotlin-stdlib-1.1.60'
      testCompile 'junit:junit:4.12'
  }
  
  kotlin {
      experimental {
          coroutines 'enable'
      }
  }
  
  compileKotlin {
      kotlinOptions.suppressWarnings = true
  }
  
  compileKotlin {
      kotlinOptions {
          suppressWarnings = true
      }
  }
  </code></pre>
  
  <p>Below the revised structure and new error I got:</p>
  
  <p><a href="https://i.stack.imgur.com/n7jfm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n7jfm.jpg" alt="enter image description here"></a></p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>U copied all the required repositories .jar and .pom to folder:</p>
  
  <p>C:\Users\.m2\repository\org\jetbrains\</p>
  
  <p>I copied for example:
  ...\kotlin\kotlin-std\1.1.60\kotlin-stdlib-1.1.60.jar
  And
  ...\annotations\13.0\annotations-13.0.jar</p>
  
  <p>And used</p>
  
  <p>mavenLocal()</p>
  
  <p>But still getting the same error :(</p>