This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-09
Channels
- # announcements (4)
- # babashka (25)
- # beginners (11)
- # calva (32)
- # clj-kondo (5)
- # clojure (130)
- # clojure-dev (11)
- # clojure-europe (17)
- # clojure-nl (1)
- # clojure-norway (96)
- # clojure-spec (1)
- # clojure-uk (3)
- # clojurescript (9)
- # conjure (2)
- # cursive (8)
- # datalevin (1)
- # etaoin (14)
- # ghostwheel (2)
- # hyperfiddle (13)
- # joker (2)
- # leiningen (82)
- # malli (3)
- # pathom (4)
- # polylith (12)
- # releases (3)
- # spacemacs (7)
- # sql (3)
@imre does this ring any bells for you? trying to build a jar, polylith + kaocha all together.
⚡ clojure -T:build uberjar
Execution error (ExceptionInfo) at clojure.tools.deps.extensions.local/eval1435$fn (local.clj:107).
No known ancestor relationship between local versions for polylith-kaocha.components/util: /Users/j/.gitlibs/libs/polylith-kaocha/kaocha-wrapper/8
deps
{:deps {
polyfy/polylith {:git/url ""
:git/sha "e8feb79"
:git/tag "v0.2.18"
:deps/root "projects/poly"}
polylith-kaocha/test-runner {:git/url ""
:git/tag "v0.8.3"
:git/sha "87b74a4"
:deps/root "projects/test-runner"}
polylith-kaocha/kaocha-wrapper {:git/url ""
:git/tag "v0.8.3"
:git/sha "87b74a4"
:deps/root "projects/kaocha-wrapper"}
}
:aliases {:run {:main-opts ["-m" "polylith.clj.core.poly-cli.core"]}
:build {:extra-deps {io.github.clojure/tools.build {:mvn/version "0.9.6"}}
:ns-default build}}}
build.clj
(ns build
"To compile & package the Polylith CLI, run:
$ clojure -T:build uberjar
To execute the newly built artifact
$ java -jar target/standalone.jar <Polylith CLI args>
"
(:require [clojure.tools.build.api :as b]))
(def class-dir "target/classes")
(def basis (b/create-basis {:project "deps.edn"}))
(defn uberjar [_]
(b/delete {:path "target"})
(b/compile-clj {:basis basis
:src-dirs ["src"]
:compile-opts {:direct-linking true}
:ns-compile '[polylith.main]
:class-dir class-dir})
(b/uber {:class-dir class-dir
:uber-file "target/standalone.jar"
:basis basis
:main 'polylith.main}))