update tools.build; add deploy via build
This commit is contained in:
parent
5992c8d9bb
commit
3ebe2732c1
2 changed files with 10 additions and 12 deletions
|
|
@ -9,7 +9,8 @@
|
||||||
|
|
||||||
clojure -A:deps -T:build help/doc"
|
clojure -A:deps -T:build help/doc"
|
||||||
(:require [clojure.tools.build.api :as b]
|
(:require [clojure.tools.build.api :as b]
|
||||||
[clojure.tools.deps.alpha :as t]))
|
[clojure.tools.deps.alpha :as t]
|
||||||
|
[deps-deploy.deps-deploy :as dd]))
|
||||||
|
|
||||||
(def lib 'com.github.seancorfield/next.jdbc)
|
(def lib 'com.github.seancorfield/next.jdbc)
|
||||||
(def version (format "1.2.%s" (b/git-count-revs nil)))
|
(def version (format "1.2.%s" (b/git-count-revs nil)))
|
||||||
|
|
@ -49,3 +50,8 @@
|
||||||
|
|
||||||
(defn ci "Run the CI pipeline of tests (and build the JAR)." [opts]
|
(defn ci "Run the CI pipeline of tests (and build the JAR)." [opts]
|
||||||
(-> opts (run-tests) (clean) (jar)))
|
(-> opts (run-tests) (clean) (jar)))
|
||||||
|
|
||||||
|
(defn deploy "Deploy the JAR to Clojars." [opts]
|
||||||
|
(dd/deploy (merge {:installer :remote :artifact jar-file
|
||||||
|
:pom-file (b/pom-path {:lib lib :class-dir class-dir})}
|
||||||
|
opts)))
|
||||||
|
|
|
||||||
14
deps.edn
14
deps.edn
|
|
@ -5,7 +5,8 @@
|
||||||
camel-snake-kebab/camel-snake-kebab {:mvn/version "0.4.2"}}
|
camel-snake-kebab/camel-snake-kebab {:mvn/version "0.4.2"}}
|
||||||
:aliases
|
:aliases
|
||||||
{;; for help: clojure -A:deps -T:build help/doc
|
{;; for help: clojure -A:deps -T:build help/doc
|
||||||
:build {:deps {io.github.clojure/tools.build {:git/tag "v0.1.8" :git/sha "38d2780"}}
|
:build {:deps {io.github.clojure/tools.build {:git/tag "v0.1.9" :git/sha "6736c83"}
|
||||||
|
io.github.slipset/deps-deploy {:sha "b4359c5d67ca002d9ed0c4b41b710d7e5a82e3bf"}}
|
||||||
:ns-default build}
|
:ns-default build}
|
||||||
|
|
||||||
;; running tests/checks of various kinds:
|
;; running tests/checks of various kinds:
|
||||||
|
|
@ -43,13 +44,4 @@
|
||||||
org.apache.logging.log4j/log4j-jul {:mvn/version "2.14.1"}
|
org.apache.logging.log4j/log4j-jul {:mvn/version "2.14.1"}
|
||||||
org.apache.logging.log4j/log4j-slf4j-impl {:mvn/version "2.14.1"}}
|
org.apache.logging.log4j/log4j-slf4j-impl {:mvn/version "2.14.1"}}
|
||||||
:jvm-opts ["-Dlog4j2.configurationFile=log4j2-info.properties"]
|
:jvm-opts ["-Dlog4j2.configurationFile=log4j2-info.properties"]
|
||||||
:exec-fn cognitect.test-runner.api/test}
|
:exec-fn cognitect.test-runner.api/test}}}
|
||||||
|
|
||||||
;; first run: clojure -T:build ci
|
|
||||||
;; then: clojure -T:deploy target/n<TAB>
|
|
||||||
:deploy
|
|
||||||
{:deps {slipset/deps-deploy {:git/url "https://github.com/slipset/deps-deploy"
|
|
||||||
:sha "b4359c5d67ca002d9ed0c4b41b710d7e5a82e3bf"}}
|
|
||||||
:exec-fn deps-deploy.deps-deploy/deploy
|
|
||||||
:exec-args {:installer :remote
|
|
||||||
:pom-file "target/classes/META-INF/maven/com.github.seancorfield/next.jdbc/pom.xml"}}}}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue