This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-05
Channels
- # announcements (7)
- # beginners (107)
- # boot (5)
- # calva (2)
- # cider (18)
- # clj-kondo (48)
- # cljs-dev (16)
- # cljsrn (2)
- # clojure (208)
- # clojure-berlin (1)
- # clojure-dev (25)
- # clojure-europe (14)
- # clojure-italy (10)
- # clojure-nl (10)
- # clojure-sg (1)
- # clojure-spec (52)
- # clojure-uk (13)
- # clojurescript (53)
- # cursive (7)
- # data-science (7)
- # datomic (4)
- # duct (1)
- # events (10)
- # fulcro (1)
- # graphql (5)
- # jobs (2)
- # kaocha (13)
- # leiningen (6)
- # off-topic (17)
- # pathom (4)
- # quil (6)
- # re-frame (52)
- # reagent (12)
- # reitit (3)
- # shadow-cljs (97)
- # spacemacs (10)
- # sql (39)
- # tools-deps (18)
- # uncomplicate (1)
- # xtdb (1)
(I don't have any packaging library right now -- just looking through the options at https://github.com/clojure/tools.deps.alpha/wiki/Tools for something easy to get running)
If you mean creating a JAR file of Clojure source code, I believe depstar is a good choice.
Appreciate the recommendation, easy enough to get a jar generated with clojure -A:depstar -m hf.depstar.jar northstar-model-0.0.1.jar
.
The consume the library artifact from other local projects, I take it I manually install to my ~/.m2/
from here -- i.e. copying pom.xml
& northstar-model-0.0.1.jar
to ~/.m2/northstar/model/0.0.1/
@quest If you have mvn
installed, that's probably the easiest way to do it "right".
(`mvn` is what I use to deploy JARs built with depstar
to http://clojars.org -- I've never tried to to install locally but I'm pretty sure it's a similar command)
mvn install:install-file -Dfile=northstar-model-0.0.1.jar -DpomFile=pom.xml
I believeYou may be able to omit apparently not... it's not quite in the format Maven expects.-DpomFile=pom.xml
now that depstar
includes pom.xml
in the JAR...
Hmm, I'll keep looking through maven install
& see if I can find something that works. Faking the .m2
autogen files isn't working out
Yes! I can confirm that it's working. Thanks @seancorfield
clojure -A:depstar -m hf.depstar.jar northstar-model-0.0.1.jar
mvn install:install-file -Dfile=northstar-model-0.0.1.jar -DpomFile=pom.xml
;; include dependency [northstar/model "0.0.1"]
It seems like it'd be good to document this somewhere, but I'm not exactly sure where :thinking_face:
I should add it to the readme...
Sure! Thank you!
Deploy to Clojars is
mvn deploy:deploy-file -Dfile=${1}.jar -DpomFile=pom.xml -DrepositoryId=clojars -Durl=
(where ${1}
is the jar file name -- and this assumes your credentials are in ~/.m2/settings.xml
like
<settings>
<servers>
<server>
<id>clojars</id>
<username>someperson</username>
<password>topsecret</password>
</server>
</servers>
</settings>