Skip to content

Instantly share code, notes, and snippets.

@mikeholler
Created February 3, 2014 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeholler/8793369 to your computer and use it in GitHub Desktop.
Save mikeholler/8793369 to your computer and use it in GitHub Desktop.
Examples of different remote Maven repositories: Maven Central, public, and a password protected Sonatype Nexus repository. Make sure to ignore gradle.properties and version control gradle.properties.example.
repositories {
mavenCentral()
maven {
// via https://support.sonatype.com/entries/21596297.html
url "http://www.sonatypenexus.com/maven/"
credentials {
username mavenUser
password mavenPass
}
}
maven {
url "http://www.bugsense.com/gradle/"
}
}
mavenUser=myMavenUser
mavenPass=myMavenPass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment