-
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.
Merge branch 'master' into feat/repl-starter
# Conflicts: # .github/workflows/release.yml # deps.edn # packages/kmono/deps.edn # packages/kmono/justfile # packages/kmono/src/k16/kmono/adapters/clojure_deps.clj # packages/kmono/src/k16/kmono/config.clj
- Loading branch information
Showing
9 changed files
with
153 additions
and
112 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
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 | ||
[clojure.edn :as edn] | ||
[clojure.java.io :as io] | ||
[clojure.tools.build.api :as b] | ||
[deps-deploy.deps-deploy :as deps-deploy])) | ||
|
||
(def basis (delay (b/create-basis {}))) | ||
|
||
(def kmono-config | ||
(-> (io/file "deps.edn") | ||
slurp | ||
edn/read-string | ||
:kmono/config)) | ||
|
||
(def lib (symbol (or (System/getenv "KMONO_PKG_NAME") | ||
(str (:group kmono-config) "/" (:artifact kmono-config))))) | ||
(def version (or (System/getenv "KMONO_PKG_VERSION") "0.0.0")) | ||
(def class-dir "target/classes") | ||
(def jar-file "target/lib.jar") | ||
|
||
(defn clean [_] | ||
(b/delete {:path "target"})) | ||
|
||
(defn build [_] | ||
(b/write-pom {:class-dir class-dir | ||
:lib lib | ||
:version version | ||
:basis @basis | ||
:src-dirs ["src"] | ||
:pom-data [[:description "Clojure monorepo tools"] | ||
[:url "https://github.com/kepler16/kmono"] | ||
[:licenses | ||
[:license | ||
[:name "MIT"] | ||
[:url "https://opensource.org/license/mit"]]]]}) | ||
|
||
(b/copy-dir {:src-dirs ["src"] | ||
:target-dir class-dir}) | ||
|
||
(b/jar {:class-dir class-dir | ||
:jar-file jar-file})) | ||
|
||
(defn release [_] | ||
(deps-deploy/deploy {:installer :remote | ||
:artifact (b/resolve-path jar-file) | ||
:pom-file (b/pom-path {:lib lib | ||
:class-dir class-dir})})) |
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,3 @@ | ||
{:paths ["./"] | ||
:deps {io.github.clojure/tools.build {:mvn/version "0.9.6"} | ||
slipset/deps-deploy {:mvn/version "0.2.2"}}} |
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,11 +1,4 @@ | ||
{:mvn/repos {"github-kepler" {:url "https://maven.pkg.github.com/kepler16/*"}} | ||
:aliases {:storm {:classpath-overrides {org.clojure/clojure nil} | ||
:extra-deps {com.github.flow-storm/clojure {:mvn/version "1.11.1-11"} | ||
com.github.flow-storm/flow-storm-dbg {:mvn/version "3.8.3"}} | ||
:jvm-opts ["-Dclojure.storm.instrumentEnable=true" | ||
"-Dclojure.storm.traceEnable=true" | ||
"-Dflowstorm.theme=dark" | ||
"-Dclojure.storm.instrumentOnlyPrefixes=k16."]} | ||
:dev {:extra-deps {kepler16/kmono {:local/root "packages/kmono"}}} | ||
:kmono {:deps {kepler16/kmono {:local/root "packages/kmono"}} | ||
:main-opts ["-m" "k16.kmono.main"]}}} | ||
{:deps {local/build {:local/root "build"}} | ||
|
||
:aliases {:kmono {:deps {com.kepler16/kmono {:local/root "packages/kmono"}} | ||
:ns-default k16.kmono.api}}} |
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
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
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