-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from Leiningen to Clojure CLI, tools.build and kaocha
- Loading branch information
1 parent
fe48f39
commit 35a2b11
Showing
5 changed files
with
46 additions
and
20 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
(ns build | ||
(:require | ||
[clojure.java.io :as io] | ||
[clojure.string :as str] | ||
[clojure.tools.build.api :as b])) | ||
|
||
(def lib 'raven-clj/raven-clj) | ||
(def version (str/trim (slurp (io/file "resources/raven_clj/version.txt")))) | ||
(def class-dir "target/classes") | ||
(def basis (b/create-basis {:project "deps.edn"})) | ||
(def jar-file (format "target/%s-%s.jar" (name lib) version)) | ||
|
||
(defn clean [_] | ||
(b/delete {:path "target"})) | ||
|
||
(defn jar [_] | ||
(b/write-pom {:class-dir class-dir | ||
:lib lib | ||
:version version | ||
:basis basis | ||
:src-dirs ["src"]}) | ||
(b/copy-dir {:src-dirs ["src" "resources"] | ||
:target-dir class-dir}) | ||
(b/jar {:class-dir class-dir | ||
:jar-file jar-file})) |
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,18 @@ | ||
{:paths | ||
["src" "resources"] | ||
|
||
:deps | ||
{org.clojure/clojure {:mvn/version "1.11.1"} | ||
cheshire/cheshire {:mvn/version "5.11.0"} | ||
org.clj-commons/clj-http-lite {:mvn/version "1.0.13"} | ||
prone/prone {:mvn/version "2021-04-23"}} | ||
|
||
:aliases | ||
{;; Run with clj -T:build function-in-build | ||
:build {:deps {io.github.clojure/tools.build {:mvn/version "0.9.5"}} | ||
:ns-default build} | ||
:test {:extra-paths ["test"] | ||
:extra-deps {lambdaisland/kaocha {:mvn/version "1.87.1366"} | ||
lambdaisland/kaocha-cloverage {:mvn/version "1.1.89"} | ||
lambdaisland/kaocha-junit-xml {:mvn/version "1.17.101"}} | ||
:main-opts ["-m" "kaocha.runner"]}}} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.7.0 | ||
1.8.0-alpha |
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,2 @@ | ||
#kaocha/v1 | ||
{} |