This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-30
Channels
- # announcements (5)
- # babashka (9)
- # beginners (48)
- # calva (300)
- # clj-kondo (9)
- # clojure (44)
- # clojure-austin (2)
- # clojure-europe (14)
- # clojure-uk (4)
- # clojurescript (1)
- # conjure (2)
- # datascript (3)
- # datomic (8)
- # exercism (5)
- # fulcro (1)
- # luminus (4)
- # music (1)
- # off-topic (12)
- # pathom (6)
- # rdf (18)
- # react (8)
- # sci (78)
- # shadow-cljs (12)
- # spacemacs (4)
- # tools-build (5)
- # tools-deps (26)
- # vim (4)
- # xtdb (8)
I have a question. I'm trying to build a jar, but I'm depending on a build of a library that is specified by a git sha, with an entry like this:
org.babashka/sci {:git/url "" :git/sha "fcf7e6067f091fd2cf2843660349e820c4449dd8"}
When I try to do that, I get a message that I've never seen before (when I depend on things using normal maven-style coordinates):
Skipping coordinate: {:git/url , :git/sha fcf7e6067f091fd2cf2843660349e820c4449dd8, :deps/manifest :deps, :deps/root /Users/me/.gitlibs/libs/org.babashka/sci/fcf7e6067f091fd2cf2843660349e820c4449dd8, :parents #{[]}, :paths [/Users/me/.gitlibs/libs/org.babashka/sci/fcf7e6067f091fd2cf2843660349e820c4449dd8/resources /Users/me/.gitlibs/libs/org.babashka/sci/fcf7e6067f091fd2cf2843660349e820c4449dd8/src]}
In the tools.build
code, it looks like this happens due to there being no mvn/version
in the original coordinate.
Is there any way around this? I don't quite understand why it won't include it, since it's just another way to specify the artifact.I'd be happy to make an interim mvn release but I'd like to know first if tools.build is able to build uberjars from git deps - it would surprise me if it didn't support that
The skipping part is re making the pom inside the jar (because maven has no way to represent this)
It should build the jar just fine but if you are publishing something it won't include the git dep as a dependency in the pom (as it can't)
If this is an uberjar then I assume you're not publishing and you don't care