Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.