This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-11
Channels
- # announcements (3)
- # asami (4)
- # babashka (79)
- # babashka-sci-dev (47)
- # beginners (97)
- # biff (12)
- # calva (7)
- # clj-commons (3)
- # clj-kondo (22)
- # clj-on-windows (13)
- # cljdoc (31)
- # cljfx (2)
- # cljs-dev (1)
- # clojure (85)
- # clojure-austin (4)
- # clojure-dev (12)
- # clojure-europe (15)
- # clojure-italy (8)
- # clojure-nl (4)
- # clojure-uk (4)
- # community-development (19)
- # conjure (3)
- # core-typed (40)
- # cursive (9)
- # datahike (21)
- # datomic (1)
- # emacs (7)
- # exercism (2)
- # graalvm (20)
- # graphql (1)
- # honeysql (16)
- # jobs (1)
- # malli (2)
- # off-topic (3)
- # pathom (28)
- # pedestal (3)
- # polylith (7)
- # reitit (14)
- # releases (1)
- # remote-jobs (1)
- # rewrite-clj (4)
- # shadow-cljs (21)
- # sql (21)
- # testing (8)
- # tools-deps (23)
- # vscode (8)
- # xtdb (38)
I can make a jar with mvn package -Dmaven.test.skip
and test with mvn test
when screening tickets. But I see there’s a build.xml
that seems to have lots of useful stuff in it, but that seems to not construct a classpath that includes clojure spec. Is build.xml
outdated or am I not setting it up correctly?
what problem are you trying to solve?
The proper way to run tests and make a jar which includes changes. I saw that mvn test
was listed in the documentation about screening tickets but not how to properly create a jar.
mvn test
and mvn package
are the proper way to run tests and package the jar
that is what CI does during build and release
the Ant build.xml is used (by the Maven build) but I would not recommend running it directly. there is a lot of history about how it ended up here. I have spiked a full Maven replacement (ow) and we've more recently looked at replacing it with tools.build, but hard to prioritize replacing a thing that works, however tortured it may be
> hard to prioritize replacing a thing that works, however tortured it may be the saddest truth
Makes sense. I just didn’t quickly notice how to make a jar and saw a “build.xml” which seemed to invite me to use its tasks. And wanted to know if I was doing it wrong. Thanks for the information.
https://clojure.atlassian.net/browse/CLJ-2617 bit me again when doing a seemingly non-breaking update of a java dependency's version. While reify
is recommended over proxy
in most cases, proxy
remains the only solution for extending classes which doesn't require AOT (as per https://puredanger.github.io/tech.puredanger.com/2011/08/12/subclassing-in-clojure/ )
https://ask.clojure.org/index.php/10383/using-proxy-might-make-otherwise-additive-change-breaking has just one vote, so would be interested to know if anyone else has encountered this