- Create an account: https://clojars.org/
- Create a deployment token: https://clojars.org/tokens/
- Create a
~/.lein/credentials.cljfile, which you will shortly encrpyt. The file should look like this:{#"clojars"{:username "YOUR_USERNAME_HERE" :password "YOUR_DEPLOY_TOKEN_HERE"}} - Encrypt with GPG:
gpg --output ~/.lein/credentials.clj.gpg --encrypt --recipient YOUR_EMAIL_HERE ~/.lein/credentials.clj - Remove the old
~/.lein/credentials.cljfile.rm ~/.lein/credentials.clj
Now lein deploy clojars should work!