[go: up one dir, main page]

Skip to content

mbuczko/revolt-catapulte-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clojars Project

JAR files local installation / deployment with Revolt

deps.edn

{: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.edn

:revolt.catapulte.task/deploy {:sign-key "Foo Bar <foo@bar.bazz>"}

using a task with REPL

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})

using a task from command-line

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

About

JAR deployer / installer for revolt

Resources

Stars

Watchers

Forks

Packages

No packages published