Fork me on GitHub
#clojure-dev
<
2022-04-11
>
dpsutton14:04:06

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?

Alex Miller (Clojure team)14:04:58

what problem are you trying to solve?

dpsutton14:04:26

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.

Alex Miller (Clojure team)14:04:55

mvn test and mvn package are the proper way to run tests and package the jar

👍 1
Alex Miller (Clojure team)14:04:21

that is what CI does during build and release

dpsutton14:04:22

oh i see it now in .

Alex Miller (Clojure team)14:04:08

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

Noah Bogart14:04:22

> hard to prioritize replacing a thing that works, however tortured it may be the saddest truth

dpsutton14:04:58

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.

imre17:04:56

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/ )

imre17:04:00

Perhaps others have found a way to avoid this problem, I'd be interested in solutions if that's the case