title: How to access company artifact repository from Gradle?
body: <p>I'd like to access my custom-developed Gradle plugins on the company's internal Artifactory instance. I want this for each and every Gradle build happening inside the company. Am I missing something, or the recommended way is really adding this in front of every single Gradle build in every project?</p>
  
  <pre><code>buildscript {
      repositories {
          maven {
              credentials {
                  username artifactoryUser
                  password artifactoryPassword
              }
              url "http://artifactory.example.com/plugins"
          }
      }
  }
  </code></pre>
  
  <p>Is there a way (like with Maven in <code>~/.m2/settings.xml</code>) to specify a default repository somewhere?</p>