Skip to content

Commit c7c5d79

Browse files
committed
[tools] remove lein
1 parent 064e066 commit c7c5d79

File tree

5 files changed

+55
-17
lines changed

5 files changed

+55
-17
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ target/
1111
*.iml
1212
.cache/
1313
.clj-kondo/
14+
*.pom.asc

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# navi [![Tests](https://github.com/lispyclouds/navi/actions/workflows/ci.yaml/badge.svg)](https://github.com/lispyclouds/navi/actions/workflows/ci.yaml)
1+
# navi
2+
3+
[![Tests](https://github.com/lispyclouds/navi/actions/workflows/ci.yaml/badge.svg)](https://github.com/lispyclouds/navi/actions/workflows/ci.yaml)
4+
[![Clojars Project](https://img.shields.io/clojars/v/org.clojars.lispyclouds/navi.svg)](https://clojars.org/org.clojars.lispyclouds/navi)
25

36
A tiny library converting [OpenAPI](https://www.openapis.org/) route definitions to [Reitit](https://cljdoc.org/jump/release/metosin/reitit) routes.
47

build.clj

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
; Copyright 2021- Rahul De
2+
;
3+
; Use of this source code is governed by an MIT-style
4+
; license that can be found in the LICENSE file or at
5+
; https://opensource.org/licenses/MIT.
6+
7+
(ns build
8+
(:require [clojure.tools.build.api :as b]
9+
[deps-deploy.deps-deploy :as dd]))
10+
11+
(def lib 'org.clojars.lispyclouds/navi)
12+
13+
(def version "0.1.2")
14+
15+
(def class-dir "target/classes")
16+
17+
(def basis (b/create-basis {:project "deps.edn"}))
18+
19+
(def jar-file (format "target/%s-%s.jar" (name lib) version))
20+
21+
(def src-dirs ["src"])
22+
23+
(defn clean
24+
[_]
25+
(b/delete {:path "target"}))
26+
27+
(defn jar
28+
[_]
29+
(b/write-pom {:class-dir class-dir
30+
:lib lib
31+
:version version
32+
:basis basis
33+
:src-dirs src-dirs})
34+
(b/copy-dir {:src-dirs src-dirs
35+
:target-dir class-dir})
36+
(b/jar {:class-dir class-dir
37+
:jar-file jar-file}))
38+
39+
(defn deploy
40+
[_]
41+
(dd/deploy {:installer :remote
42+
:sign-releases? true
43+
:artifact jar-file
44+
:pom-file (b/pom-path {:lib lib
45+
:class-dir class-dir})}))

deps.edn

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66

77
{:deps {io.swagger.parser.v3/swagger-parser {:mvn/version "2.1.25"}}
88
:aliases {:test {:extra-paths ["test"]
9-
:extra-deps {io.github.cognitect-labs/test-runner
10-
{:git/tag "v0.5.1" :git/sha "dfb30dd"}
9+
:extra-deps {io.github.cognitect-labs/test-runner {:git/tag "v0.5.1" :git/sha "dfb30dd"}
1110
metosin/malli {:mvn/version "0.17.0"}}
1211
:main-opts ["-m" "cognitect.test-runner"]
13-
:exec-fn cognitect.test-runner.api/test}}}
12+
:exec-fn cognitect.test-runner.api/test}
13+
:build {:deps {io.github.clojure/tools.build {:git/tag "v0.10.6" :git/sha "52cf7d6"}
14+
slipset/deps-deploy {:mvn/version "0.2.2"}}
15+
:ns-default build}}}

project.clj

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)