Skip to content

Commit

Permalink
Updated deploy code
Browse files Browse the repository at this point in the history
  • Loading branch information
ieugen committed Nov 26, 2023
1 parent e2d19d0 commit 272d8f0
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
;; Build instructions
;;
(ns build
(:require [clojure.tools.build.api :as b]))
(:require [clojure.tools.build.api :as b]
[deps-deploy.deps-deploy :as dd]))


(def lib 'io.github.ieugen/calcite-clj)
Expand Down Expand Up @@ -51,15 +52,23 @@
(assoc :lib lib :version version)
(b/install)))

#_(defn deploy "Deploy the JAR to Clojars." [opts]
(-> opts
(assoc :lib lib :version version)
(b/deploy)))
(defn deploy "Deploy the JAR to Clojars."
[params]
(let [params (merge {:installer :remote
:lib lib
:version version
:artifact jar-file
:class-dir class-dir}
params)
pom-file (b/pom-path params)
params (assoc params :pom-file pom-file)]
(dd/deploy params)))

(comment

(clean nil)
(ci nil)
(deploy nil)


)

0 comments on commit 272d8f0

Please sign in to comment.