diff --git a/Makefile b/Makefile index c6e33b4f..e13cf8bf 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: clean prepare lint pom jar uberjar javadoc compile clj-test java-test visual-test coverage test all +.PHONY: clean prepare lint pom install jar uberjar javadoc compile clj-test java-test visual-test coverage test all .DEFAULT_GOAL := all clean: @@ -13,6 +13,9 @@ lint: clean pom: clean clojure -T:build pom +install: clean + clojure -T:build install + jar: clean clojure -T:build jar diff --git a/build.clj b/build.clj index 3ba4c646..7e699dc6 100644 --- a/build.clj +++ b/build.clj @@ -76,6 +76,15 @@ (println "Built JAR file") opts) +(defn install [opts] + (jar opts) + (b/install {:basis basis + :lib lib + :version version + :jar-file jar-file-name + :class-dir jar-content}) + opts) + (defn java-test [_] (def basis (b/create-basis {:project "deps.edn" :aliases [:junit]}))