GitHub or Bitbucket Private Replication Dependencies

We are using sbt 0.13.9, and we want to use the private GitHub repository to store the dependencies of the entire company. I am trying to add GitHub private details for converters like this:

resolvers += Resolver.ssh("Company Repo", " git@github.com :company/company-repo.git", "/raw/master")(Resolver.ivyStylePatterns) // or resolvers += Resolver.ssh("Company Repo", " git@github.com :company/company-repo.git", "/raw/master")(Resolver.ivyStylePatterns) as("githubuser") // or resolvers += Resolver.ssh("Company Repo", " git@github.com :company/company-repo.git", "/raw/master")(Resolver.ivyStylePatterns) as("githubuser", "password") // or resolvers += { val keyFile: File = new File(Path.userHome.absolutePath + "/.ssh/id_rsa") Resolver.ssh("Company Repo", " git@github.com :company/company-repo.git", "/raw/master")(Resolver.ivyStylePatterns) as("githubuser", keyFile) } // or resolvers += { val keyFile: File = new File(Path.userHome.absolutePath + "/.ssh/id_rsa") Resolver.ssh("Company Repo", " git@github.com :company/company-repo.git", "/raw/master")(Resolver.ivyStylePatterns) as("githubuser", keyFile, "keyFilePassword") } 

(For resolvers where there was no user and / or password, a popup window appears to enter the user name / password.)

However, it always fails:

 [warn] ==== Company Maven Repo: tried [warn] com.company/my-module_2.11/2.0.0/ivys/ivy.xml 

The location of the files inside the repo is correct, I'm 100% sure.

Can sbt treat git repositories as permissions in general? Does anyone have a working example with a GitHub repository ? Bitbucket will be fine too.

Again, the repo is private , and the repositories are the git repo, not http (s) and sftp .

Oh, and yes, I know bintray, but right now we don’t want to pay $ 45 a month to manage as 3 dependencies for 2 developers.

PS: My configuration is based on examples from

+6
source share

All Articles