Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mbuczko/revolt-catapulte-task
JAR deployer / installer for revolt
https://github.com/mbuczko/revolt-catapulte-task
Last synced: 15 days ago
JSON representation
JAR deployer / installer for revolt
- Host: GitHub
- URL: https://github.com/mbuczko/revolt-catapulte-task
- Owner: mbuczko
- Created: 2019-04-09T15:33:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-24T23:47:05.000Z (about 4 years ago)
- Last Synced: 2024-11-13T07:53:41.306Z (about 2 months ago)
- Language: Clojure
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Clojars Project](https://img.shields.io/clojars/v/defunkt/revolt-catapulte-task.svg)](https://clojars.org/defunkt/revolt-catapulte-task)
# JAR files local installation / deployment with Revolt
## deps.edn
``` clojure
{: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
``` clojure
:revolt.catapulte.task/deploy {:sign-key "Foo Bar "}
```## using a task with REPL
`clj -A:dev -p rebel`
``` clojure
(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:
``` clojure
: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`