scala - Store dependencies in private GitHub or Bitbucket repo -
we using sbt 0.13.9 , want use private github repo store company-wide dependencies. try add private github repo resolvers 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 no user and/or no password supplied popup appears enter username/password.)
however, failing:
[warn] ==== company maven repo: tried [warn] com.company/my-module_2.11/2.0.0/ivys/ivy.xml
the location of files inside repo correct, 100% sure.
can sbt handle git
repos resolvers @ all? did has working example private github repo? bitbucket fine too.
again, repo private , repos git repo, not http(s) nor sftp.
oh, , yes, know bintray, right don't want pay 45 usd monthly manage 3 dependencies 2 devs.
ps: configuration based on examples from
Comments
Post a Comment