Hi everyone. I'm having problems setting up Leiningen to resolve private dependencies from GitLab.
It works well in Maven projects. I configured it by providing configuration with HTTP header (`Private-Token:abcd`) that is stored in the ~/.m2/settings.xml
(as described in the https://docs.gitlab.com/ee/user/packages/maven_repository/index.html#authenticate-to-the-package-registry-with-maven).
I've tried setting something similar with lein by following the https://github.com/technomancy/leiningen/blob/master/doc/DEPLOY.md#authentication, but it always fails on resolving the dependency printing Could not find artifact ... in releases
. Here is what I added to project.clj:
:repositories [["releases" {:url "<https://gitlab.com/api/v4/projects/.../packages/maven>"
:creds :gpg}]]
I'm probably adding the private token incorrectly (or using wrong credentials provider). Tried different combinations of username/password/passhprase added to ~/.lein/credentials.clj
(and later encrypted with gpg), but nothing worked correctly.
Any hints?