Skip to content

Instantly share code, notes, and snippets.

@ifesdjeen
Created June 17, 2013 09:58
Show Gist options
  • Save ifesdjeen/5795874 to your computer and use it in GitHub Desktop.
Save ifesdjeen/5795874 to your computer and use it in GitHub Desktop.
How to use pgp authentication with leiningen

In order to setup leiningen with pgp, you have to create a ~/.lein/credentials.clj file and put following contents into it:

{
  #"https:\/\/your.nexus.server.address\/" {:username "your_username" :password "supersecret"}
}

After that you can run lein deploy. If something is wrong, check wether nexus creds are correct. One thing that made me (personally) surprised was the fact that you should specify server name (address) of nexus server, but not repository name for auth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment