-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from athos/feature/migrate-to-build-clj
Migrate to build-clj
- Loading branch information
Showing
4 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
/classes | ||
/checkouts | ||
profiles.clj | ||
pom.xml | ||
pom.xml.asc | ||
/pom.xml | ||
/pom.xml.asc | ||
*.jar | ||
*.class | ||
/.cpcache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
(ns build | ||
(:require [clojure.tools.build.api :as b] | ||
[org.corfield.build :as bb])) | ||
|
||
(def lib 'dev.athos/type-infer) | ||
(def version "0.1.2") | ||
(def tag (b/git-process {:git-args "rev-parse HEAD"})) | ||
|
||
(defn clean [opts] | ||
(bb/clean opts)) | ||
|
||
(defn jar [opts] | ||
(-> opts | ||
(assoc :src-pom "template/pom.xml" | ||
:lib lib :version version :scm {:tag tag}) | ||
(clean) | ||
(bb/jar))) | ||
|
||
(defn install [opts] | ||
(-> opts | ||
(assoc :lib lib :version version) | ||
(bb/install))) | ||
|
||
(defn deploy [opts] | ||
(-> opts | ||
(assoc :lib lib :version version) | ||
(bb/deploy))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<name>type-infer</name> | ||
<description>A Clojure utility to inspect static types inferred by the Clojure compiler</description> | ||
<url>https://github.com/athos/type-infer</url> | ||
<licenses> | ||
<license> | ||
<name>EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0</name> | ||
<url>https://www.eclipse.org/legal/epl-2.0/</url> | ||
</license> | ||
</licenses> | ||
<developers> | ||
<developer> | ||
<id>athos</id> | ||
<name>Shogo Ohta</name> | ||
</developer> | ||
</developers> | ||
<scm> | ||
<url>https://github.com/athos/type-infer</url> | ||
<connection>scm:git:git://github.com/athos/type-infer.git</connection> | ||
<developerConnection>scm:git:ssh://[email protected]/athos/type-infer.git</developerConnection> | ||
</scm> | ||
</project> |