Skip to content

Commit

Permalink
add licenses support (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenet authored Oct 5, 2023
1 parent 4ad527f commit b137c39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
cljfmt/cljfmt {:mvn/version "0.8.0"}
clj-kondo/clj-kondo {:mvn/version "2022.05.31"}
timofreiberg/bultitude {:mvn/version "0.3.1"}
io.github.clojure/tools.build {:git/tag "v0.8.2" :git/sha "ba1a2bf"}
com.exoscale/tools.build {:git/url "https://github.com/exoscale/tools.build.git"
:git/sha "df75a6c3f9d2297f27da572836d004fd66b8d894"}
io.github.exoscale/deps-version {:git/sha "e5caeb9dcb4b691de59b271c36e9c21093db6557"}
com.exoscale/lingo {:mvn/version "1.0.0-alpha19"}
io.github.slipset/deps-deploy {:git/sha "b87c9299761762984bd54a285ca8fa0aac81809f"
Expand Down
8 changes: 6 additions & 2 deletions src/exoscale/tools/project/api/jar.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
(format "%s/%s-%s-standalone.jar" path lib version)))

(defn jar [opts]
(let [{:exoscale.project/keys [_env lib _version _version-file class-dir src-dirs basis jar-file deps-file]
(let [{:exoscale.project/keys [_env lib _version _version-file class-dir
src-dirs basis jar-file deps-file licenses]
:as opts} opts
version (v/get-version opts)
deps-file (dir/canonicalize deps-file)
Expand All @@ -34,6 +35,7 @@
(b/write-pom {:basis basis
:class-dir class-dir
:lib lib
:licenses licenses
:src-dirs (:exoscale.project/src-dirs opts)
:version version})
(println "Copying src-dirs: " src-dirs)
Expand All @@ -50,7 +52,8 @@
(defn uberjar
[opts]
(let [{:exoscale.project/keys [_env lib _version _version-file main compile-opts
src-dirs class-dir basis uberjar-file uber-opts deps-file]
src-dirs class-dir basis uberjar-file uber-opts deps-file
licenses]
:as opts} opts
version (v/get-version opts)
deps-file (dir/canonicalize deps-file)
Expand All @@ -66,6 +69,7 @@
(b/write-pom {:basis basis
:class-dir class-dir
:lib lib
:licenses licenses
:src-dirs (:exoscale.project/src-dirs opts)
:version version})
(println "Compiling" src-dirs)
Expand Down

0 comments on commit b137c39

Please sign in to comment.