Skip to content

Commit 356a1de

Browse files
authored
Merge pull request #18 from athos/feature/build-clj
Migrate to build-clj
2 parents 890c482 + d0dea3f commit 356a1de

4 files changed

Lines changed: 60 additions & 3 deletions

File tree

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
/classes
33
/checkouts
44
.cpcache/
5-
pom.xml
6-
pom.xml.asc
5+
/pom.xml
6+
/pom.xml.asc
77
*.jar
88
*.class
99
/.lein-*

build.clj

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
(ns build
2+
(:require [clojure.tools.build.api :as b]
3+
[org.corfield.build :as bb]))
4+
5+
(def lib 'postmortem/postmortem)
6+
(def version "0.5.2-SNAPSHOT")
7+
(def tag (b/git-process {:git-args "rev-parse HEAD"}))
8+
9+
(defn clean [opts]
10+
(bb/clean opts))
11+
12+
(defn jar [opts]
13+
(-> opts
14+
(assoc :src-pom "template/pom.xml"
15+
:lib lib :version version :scm {:tag tag})
16+
(clean)
17+
(bb/jar)))
18+
19+
(defn install [opts]
20+
(-> opts
21+
(assoc :lib lib :version version)
22+
(bb/install)))
23+
24+
(defn deploy [opts]
25+
(-> opts
26+
(assoc :lib lib :version version)
27+
(bb/deploy)))

deps.edn

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,10 @@
1818
"-m" "postmortem.test-runner"]}
1919
:1.8 {:override-deps {org.clojure/clojure {:mvn/version "1.8.0"}}}
2020
:1.9 {:override-deps {org.clojure/clojure {:mvn/version "1.9.0"}}}
21-
:1.10 {:override-deps {org.clojure/clojure {:mvn/version "1.10.3"}}}}}
21+
:1.10 {:override-deps {org.clojure/clojure {:mvn/version "1.10.3"}}}
22+
:build {:deps
23+
{io.github.clojure/tools.build
24+
{:git/tag "v0.8.3" :git/sha "0d20256"}
25+
io.github.seancorfield/build-clj
26+
{:git/tag "v0.8.3" :git/sha "7ac1f8d"}}
27+
:ns-default build}}}

template/pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<name>postmortem</name>
5+
<description>A tiny data-oriented debugging tool for Clojure(Script), powered by transducers</description>
6+
<url>https://github.com/athos/Postmortem</url>
7+
<licenses>
8+
<license>
9+
<name>Eclipse Public License</name>
10+
<url>http://www.eclipse.org/legal/epl-v10.html</url>
11+
</license>
12+
</licenses>
13+
<developers>
14+
<developer>
15+
<id>athos</id>
16+
<name>Shogo Ohta</name>
17+
</developer>
18+
</developers>
19+
<scm>
20+
<url>https://github.com/athos/Postmortem</url>
21+
<connection>scm:git:git://github.com/athos/Postmortem.git</connection>
22+
<developerConnection>scm:git:ssh://git@github.com/athos/Postmortem.git</developerConnection>
23+
</scm>
24+
</project>

0 commit comments

Comments
 (0)