File tree Expand file tree Collapse file tree 5 files changed +55
-17
lines changed Expand file tree Collapse file tree 5 files changed +55
-17
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ target/
1111* .iml
1212.cache /
1313.clj-kondo /
14+ * .pom.asc
Original file line number Diff line number Diff line change 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
36A tiny library converting [ OpenAPI] ( https://www.openapis.org/ ) route definitions to [ Reitit] ( https://cljdoc.org/jump/release/metosin/reitit ) routes.
47
Original file line number Diff line number Diff line change 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})}))
Original file line number Diff line number Diff line change 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}}}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments