Skip to content

Instantly share code, notes, and snippets.

@jacobmoncur
Created January 23, 2014 21:28
Show Gist options
  • Save jacobmoncur/8587185 to your computer and use it in GitHub Desktop.
Save jacobmoncur/8587185 to your computer and use it in GitHub Desktop.
Gradle file for getting maven dependencies hosted on private github repo
repositories {
mavenCentral()
maven {
url = 'https://github.com/github-username/github-project/raw/master'
credentials {
username 'my-username'
password 'my-password'
}
}
}
dependencies {
compile 'com.example:library_project:0.0.1'
}
@vadymhimself
Copy link

vadymhimself commented May 10, 2017

I want to use authentication through ssh key. Where can I find the documentation on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment