Skip to content

Instantly share code, notes, and snippets.

@xpe
Created March 18, 2015 02:15
Show Gist options
  • Save xpe/ee8add819d591c41cf4f to your computer and use it in GitHub Desktop.
Save xpe/ee8add819d591c41cf4f to your computer and use it in GitHub Desktop.
Example Artifactory project.clj for Leiningen 2.5
;; To deploy to a hosted Artifactory server:
(defproject project-name "0.1.0-SNAPSHOT"
;; ...
:deploy-repositories
[["releases"
{:url "http://org-name.artifactoryonline.com/org-name/libs-releases-local"
:username :env/artifactory_user
:password :env/artifactory_pass}]
["snapshots"
{:url "http://org-name.artifactoryonline.com/org-name/libs-snapshots-local/"
:username :env/artifactory_user
:password :env/artifactory_pass}]]
;; ...
:profiles {:dev {:source-paths ["dev"]}})
;; Notes / Gotcha!
;; * Use :password not :passphrase
;; * :deploy-repositories must be a vector of vectors
;; Read this:
;; https://github.com/technomancy/leiningen/blob/master/doc/DEPLOY.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment