Hi

How can I avoid this duplication (same repo used for buildscript element and
for repositories element):

buildscript {
   repositories {
      
org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials(DOWNLOAD_REPO_REALM,
DOWNLOAD_REPO_HOST, DOWNLOAD_REPO_USERNAME, DOWNLOAD_REPO_PASSWORD);
       mavenRepo urls: DOWNLOAD_REPO_URL
   }

   dependencies {
       ….
   }
}

...

repositories {
  
org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials(DOWNLOAD_REPO_REALM,
DOWNLOAD_REPO_HOST, DOWNLOAD_REPO_USERNAME, DOWNLOAD_REPO_PASSWORD);
   mavenRepo urls: DOWNLOAD_REPO_URL
}

Any help is appreciated.

Regards, Etienne


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/how-to-reuse-repository-definition-tp4742950p4742950.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to