-
-
Save matthewmccullough/250960 to your computer and use it in GitHub Desktop.
Add dependency with Clojure to Maven programatically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Define the project and store in a variable | |
(def project (defproject "a:b:c" | |
:dependencies ["org.clojure:clojure:1.1.0-alpha-SNAPSHOT" | |
"org.clojure:clojure-contrib:1.0-SNAPSHOT"])) | |
; Use the provided API to easily add a new dependency programatically | |
(add-dependency! project "org.testng:testng:5.10") | |
; Return the project | |
project |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment