anchor.diff:  ----
   
   or if you use Gradle 2.1+
  +
  +If you are in a restricted environment, you might want to use approach number #1 and conditionally add the remote reference
  +to work only when you are in a non-restricted environment. i.e.
  +
  +[source,groovy]
  +----
  +  repositories {
  +    if(!System.getenv('RESTRICTED')) {
  +      maven {
  +          url "https://plugins.gradle.org/m2/"
  +      }
  +    }
  +  }
  +----
   
   [source,groovy]
   ----
  
positive.code: }
  ----
  <1> Define the path to the local repository here
  
negative.code:   and therefore supports all the standard repository definitions a Gradle user would expect.
  <3> Restrict the configurations you would like to have added to the synchronisation process. If none are supplied,
    dependencies from all configurations will be added.
  <4> Whether to add dependencies from `buildscript`. (See further down).
  
  == Usage
  
  