diff --git a/leiningen/README.md b/leiningen/README.md index 3260dab..5a57d72 100644 --- a/leiningen/README.md +++ b/leiningen/README.md @@ -2,6 +2,8 @@ This requires Leiningen installed. Please refer to [this link](http://leiningen.org/#install) for step-by-step installation instructions. +**Your package also needs to exist on Bintray for this to work, so make sure to create it before running 'lein deploy'** + After installing Leiningen, cd into your project.clj directory and run 'lein deploy'. This will build this project sample and deploy it to your Maven repo on Bintray. Please make sure to replace the username and API key with the placeholders inside the project file with your own. diff --git a/leiningen/project.clj b/leiningen/project.clj index 9a9ca28..256c90f 100644 --- a/leiningen/project.clj +++ b/leiningen/project.clj @@ -2,14 +2,20 @@ (defproject cloj-bintray "1.0.0" ;; ... :deploy-repositories - [["releases" - {:url "https://api.bintray.com/maven/:subject/:repo/:package/" + [ + ["releases" + {:url "https://api.bintray.com/maven/:subject/:repo/:package" :sign-releases false - :username "" - :password "}] + :username "username" + :password "apiKey" + } + ] ["snapshots" - {:url "https://api.bintray.com/maven/:subject/:repo/:package/" - :username "" - :password "}]] + {:url "https://api.bintray.com/maven/:subject/:repo/:package" + :username "username" + :password "apiKey" + } + ] + ] ;; ... :profiles {:dev {:source-paths ["dev"]}})