Skip to content

Commit 643b5fb

Browse files
committedNov 6, 2022
Migrate to build-clj
1 parent 7a5ee1a commit 643b5fb

File tree

4 files changed

+61
-3
lines changed

4 files changed

+61
-3
lines changed
 

‎.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
/checkouts
44
/node_modules
55
profiles.clj
6-
pom.xml
7-
pom.xml.asc
6+
/pom.xml
7+
/pom.xml.asc
88
*.jar
99
*.class
1010
/.cpcache

‎build.clj

+27
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 'pogonos/pogonos)
6+
(def version "0.2.1-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

+8-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,11 @@
2222
{org.clojure/clojurescript {:mvn/version "1.11.4"}}}
2323
:test-cljs
2424
{:main-opts ["-m" "cljs.main" "-re" "node"
25-
"-m" "pogonos.test-runner"]}}}
25+
"-m" "pogonos.test-runner"]}
26+
:build
27+
{:deps
28+
{io.github.clojure/tools.build
29+
{:git/tag "v0.8.3" :git/sha "0d20256"}
30+
io.github.seancorfield/build-clj
31+
{:git/tag "v0.8.3" :git/sha "7ac1f8d"}}
32+
:ns-default build}}}

‎template/pom.xml

+24
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>Another Clojure(Script) implementation of the Mustache templating language</description>
6+
<url>https://github.com/athos/pogonos</url>
7+
<licenses>
8+
<license>
9+
<name>EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0</name>
10+
<url>https://www.eclipse.org/legal/epl-2.0/</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/pogonos</url>
21+
<connection>scm:git:git://github.com/athos/pogonos.git</connection>
22+
<developerConnection>scm:git:ssh://git@github.com/athos/pogonos.git</developerConnection>
23+
</scm>
24+
</project>

0 commit comments

Comments
 (0)
Please sign in to comment.