Closed florin-va-oltean closed 1 year ago
In User Guide, currently there is this example (at the bottom of the page):
(aether/deploy :coordinates '[lread/mucking-around "1.2.3"] :jar-file (io/file "target" "some-library.jar") :pom-file (io/file "pom.xml") :repository {:url "https://repo.clojars.org" :username (System/getEnv "CLOJARS_USERNAME") :password (System/getEnv "CLOJARS_PASSWORD")})
BUT, It should be:
(aether/deploy :coordinates '[lread/mucking-around "1.2.3"] :jar-file (io/file "target" "some-library.jar") :pom-file (io/file "pom.xml") :repository {:my-repo {:url "https://repo.clojars.org" :username (System/getenv "CLOJARS_USERNAME") :password (System/getenv "CLOJARS_PASSWORD")}})
Two differences:
{:repo-id {:url "..." :username "..." :password "..."}}
System/getEnv
System/getenv
Ultimately, the first difference probably should be corrected in the code in function deploy-artefacts when building the object DeployRequest .
deploy-artefacts
DeployRequest
Note: I tested this with a private repo hosted at https://www.deps.co/
@florin-va-oltean thanks so much for raising an issue! I'll take a peek sometime soon.
In User Guide, currently there is this example (at the bottom of the page):
BUT, It should be:
Two differences:
{:repo-id {:url "..." :username "..." :password "..."}}
System/getEnv
should beSystem/getenv
Ultimately, the first difference probably should be corrected in the code in function
deploy-artefacts
when building the objectDeployRequest
.Note: I tested this with a private repo hosted at https://www.deps.co/