Skip to content
Browse files

build.gradle will use local repository server defined in ~/.gradle/gr…

…adle.properties
  • Loading branch information...
1 parent 01e7a1e commit 15550107fe845ed5e57aef6d2e16dba12f3031bf Keith Gregory committed
Showing with 10 additions and 1 deletion.
  1. +10 −1 build.gradle
View
11 build.gradle
@@ -57,9 +57,18 @@ allprojects {
in a public repo are distributed in the lib dir. */
flatDir name: 'libDir', dirs: "lib"
+ /* a local cache for retrieved artifacts */
mavenLocal()
+
+ /* things that aren't in Maven central */
mavenRepo name: "gson", urls: "http://google-gson.googlecode.com/svn/mavenrepo"
- mavenCentral()
+
+ /* the final resort - if you have a corporate repository server, set the URL
+ in ~/.gradle/gradle.properties */
+ if ( project.hasProperty('internalRepositoryUrl') )
+ mavenRepo urls: project.internalRepositoryUrl
+ else
+ mavenCentral()
}
}

0 comments on commit 1555010

Please sign in to comment.
Something went wrong with that request. Please try again.