-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be74393
commit b642f66
Showing
3 changed files
with
83 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
(ns build | ||
(:require [cognitect.test-runner.api :as tr] | ||
[clojure.tools.build.api :as b] | ||
[deps-deploy.deps-deploy :as dd])) | ||
|
||
(def basis | ||
(delay (b/create-basis))) | ||
|
||
(def class-dir | ||
"target/classes") | ||
|
||
(def lib | ||
'dev.onionpancakes/chassis) | ||
|
||
(def version | ||
(format "1.0.%s" (b/git-count-revs nil))) | ||
|
||
(def jar-file | ||
(format "target/%s-%s.jar" (name lib) version)) | ||
|
||
(defn clean [_] | ||
(b/delete {:path "target"})) | ||
|
||
(defn jar [_] | ||
(clean nil) | ||
(b/write-pom {:basis @basis | ||
:src-pom "./build/pom.xml" | ||
:src-dirs ["src"] | ||
:class-dir class-dir | ||
:lib lib | ||
:version version}) | ||
(b/copy-dir {:src-dirs ["src"] | ||
:target-dir class-dir}) | ||
(b/jar {:class-dir class-dir | ||
:jar-file jar-file})) | ||
|
||
(defn install [_] | ||
(b/install {:basis @basis | ||
:class-dir class-dir | ||
:lib lib | ||
:version version | ||
:jar-file jar-file})) | ||
|
||
(defn deploy [_] | ||
(jar nil) | ||
(dd/deploy {:installer :remote | ||
:artifact jar-file | ||
:pom-file (b/pom-path {:class-dir class-dir :lib lib})})) |
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,22 @@ | ||
<?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> | ||
<packaging>jar</packaging> | ||
<groupId>dev.onionpancakes</groupId> | ||
<artifactId>chassis</artifactId> | ||
<name>chassis</name> | ||
<description>Fast HTML5 serialization for Clojure</description> | ||
<url>https://github.com/onionpancakes/chassis</url> | ||
<licenses> | ||
<license> | ||
<name>MIT License</name> | ||
<url>https://opensource.org/license/mit</url> | ||
</license> | ||
</licenses> | ||
<repositories> | ||
<repository> | ||
<id>clojars</id> | ||
<url>https://repo.clojars.org/</url> | ||
</repository> | ||
</repositories> | ||
</project> |
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