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 GitLab docs).
I've tried setting something similar with lein by following the docs, 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?