slipset / deps-deploy

deploy your stuff
Eclipse Public License 1.0
149 stars 31 forks source link

Username and password not read from environment vars when deploying to non-clojars repository #59

Closed kthu closed 1 year ago

kthu commented 1 year ago

When deploying to a non-clojars maven repository the readme suggests using the environment variables CLOJARS_URL, CLOJARS_USERNAME and CLOJARS_PASSWORD. This works as expected.

However - the readme also mentions the possibility to set the repository url in the :exec-args map in the deploy alias in deps.edn like this:

:exec-args {:repository {"releases" {:url "https://internal/repository/maven-releases"}}}

When doing this, the username and password will no longer be read from the CLOJARS_* environment variables (nor from ~/.m2/settings.xml) as one would expect. Adding :username and :password fields to the :repository map does work, but one would most likely want to avoid that.