{:paths ["resources"]
:aliases {:dev {:extra-deps {defunkt/revolt {:mvn/version "1.3.0"}
defunkt/revolt-catapulte-task {:mvn/version "0.1.3"}}
:main-opts ["-m" "revolt.bootstrap"]}}}
:revolt.catapulte.task/deploy {:sign-key "Foo Bar <foo@bar.bazz>"}
clj -A:dev -p rebel
(require '[revolt.task :as t])
(require '[revolt.catapulte.task :as catapulte])
(t/require-task ::catapulte/deploy)
(t/require-task ::catapulte/install)
;; to install jar to local .m2 repository
(install {:jar-file "dist/foo-1.1.0.jar"})
;; to deploy to clojars (note CLOJARS_USER and CLOJARS_TOKEN environmental variables need to be set)
;; also pom.xml file has to be generated before, eg. by clj -Spom
;; if :sign-key was configured jar will be signed first
(deploy {:jar-file "dist/foo-1.1.0.jar"})
;; enforce no signing
(deploy {:jar-file "dist/foo-1.1.0.jar" :sign-key nil})
clj -A:dev -t revolt.catapulte.task/install
clj -A:dev -t revolt.catapulte.task/deploy:sign-key=xxxx
Having info
task configured, it's easy to compose tasks together:
revolt.edn:
:revolt.task/info {:name "foo" :package bar :version "0.1.1"}
:revolt.task/clean {:extra-paths ["dist"]}
command:
clj -A:dev -t clean,info,jar,revolt.catapulte.task/install