- Update version in
project.clj
lein deploy clojars
(defproject org.jasani/my-project ...
brew install gpg
gpg --gen-key
- Use the default kind of key: RSA and RSA (default)
- 2048 or 4096 keysize
- Expire in 2years
Use gpg --list-keys
to see the 8 digit hex ID of the public key. Add it to ~/.lein/profiles.clj
as
{:user {:signing {:gpg-key "ABCD1234"}}}
brew install pinentry-mac
echo 'pinentry-program /usr/local/bin/pinentry-mac' > ~/.gnupg/gpg-agent.conf
{:auth {:repository-auth {#"https://clojars.org/repo"
{:username "" :password ""}}}}
gpg --send-keys ABCD1234