Created
January 20, 2014 19:48
-
-
Save blundell/8527691 to your computer and use it in GitHub Desktop.
Handle the declaration of all source code repositories in your base build file, and you don't have to worry about declaring them in any child modules. The code below would go at the top of your build.gradle, in your 'base' or 'top' build.gradle file.
You don't have to add anything to child modules. You will get full repository source retrieval.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subprojects { | |
buildscript { | |
repositories { | |
mavenCentral() | |
maven { | |
url "https://oss.sonatype.org/content/repositories/snapshots" | |
} | |
maven { | |
url "https://github.com/novoda/public-mvn-repo/raw/master/releases" | |
} | |
} | |
} | |
repositories { | |
mavenCentral() | |
maven { | |
url "https://oss.sonatype.org/content/repositories/snapshots" | |
} | |
maven { | |
url "https://github.com/novoda/public-mvn-repo/raw/master/releases" | |
} | |
} | |
} |
Author
blundell
commented
Jan 20, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment