Reputation: 193
I have a private project on Github (you can't clone or even find the project without being added as a contributor), and a branch on it for Maven artifacts generated in this project.
I have another project (also private) for Android, and I am wondering if there is any way to add the most recent versions of the Maven artifacts as a dependency in this Android project (or indeed any version), through Gradle.
Earlier similar questions on this site tell me that Github has no basic HTTP authentication, and I looked at jitpack.io but even if I logged into my Github, it still couldn't find the repo I was interested in. If it makes any difference, I don't own this project, a partner does, but I have access to it.
Upvotes: 1
Views: 1144
Reputation: 11403
Just use an Amazon S3 bucket for artifact storage. Here is an example of how to setup the dependencies to download from s3
// add s3 for dependency download
repositories {
maven {
url "s3://someS3Bucket/maven2"
credentials(AwsCredentials) {
accessKey "someKey"
secretKey "someSecret"
}
}
}
Upvotes: 0