Skip to content

Commit 563000c

Browse files
authored
add pom-data per clojar's request (#77)
1 parent e517733 commit 563000c

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

build.clj

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,32 @@
33
(:require [clojure.tools.build.api :as b]
44
[org.corfield.build :as cb]))
55

6-
(defn project
6+
(defn project
77
"apply project default to `opts`"
88
[opts]
9-
(let [defaults {:lib 'sg.flybot/lasagna-pull
10-
:version (format "0.4.%s" (b/git-count-revs nil))
11-
:scm {:url "https://github.com/flybot-sg/lasagna-pull"}}]
9+
(let [version (format "0.4.%s" (b/git-count-revs nil))
10+
defaults {:lib 'sg.flybot/lasagna-pull
11+
:version version}]
1212
(merge defaults opts)))
1313

14-
(defn tests
14+
(defn pom
15+
[opts]
16+
(let [pom-data
17+
[[:description "Precisely select from deep data structure"]
18+
[:url "https://github.com/flybot-sg/lasagna-pull"]
19+
[:licenses
20+
[:license
21+
[:name "Apache-2.0"]
22+
[:url "https://www.apache.org/licenses/LICENSE-2.0.txt"]]]
23+
[:organization "Flybot Pte Ltd"]]
24+
opts (merge opts
25+
{:basis (b/create-basis {})
26+
:target "target"
27+
:pom-data pom-data})]
28+
(b/write-pom opts)
29+
opts))
30+
31+
(defn tests
1532
"run all tests, for clj and cljs."
1633
[opts]
1734
(-> opts
@@ -24,6 +41,7 @@
2441
(project)
2542
(cb/clean)
2643
(tests)
44+
(pom)
2745
(cb/jar)))
2846

2947
(defn deploy

deps.edn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@
3232

3333
:build ;build
3434
{:deps
35-
{io.github.seancorfield/build-clj {:git/tag "v0.9.2", :git/sha "9c9f078"}},
35+
{io.github.clojure/tools.build {:mvn/version "0.10.8"}
36+
io.github.seancorfield/build-clj {:git/tag "v0.9.2", :git/sha "9c9f078"}},
3637
:ns-default build}}}

0 commit comments

Comments
 (0)