title: Gradle use plugins and dependencies offline
body: <p>for a presentation I need to compile a a Gradle project offline.
  But everything I tried so far to get the dependencies and plugin working offline failed.
  What is the recomended way to use Gradle offline and make the plugin and dependecies available before?</p>
  
  <p>here is my current implementation for online use:</p>
  
  <pre><code>buildscript {    
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.3.RELEASE")
      }    
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>repositories {
      mavenCentral()
  }
  dependencies {
      compile("org.springframework.boot:spring-boot-starter-web")
      testCompile("junit:junit")
      compile("org.springframework.boot:spring-boot-starter-actuator")
      testCompile("org.springframework.boot:spring-boot-starter-test")
  }
  </code></pre>