depstar

Discussion around https://github.com/seancorfield/depstar
fabrao 2021-02-18T18:01:39.107700Z

dir

fabrao 2021-02-18T18:02:37.107900Z

Hello all

fabrao 2021-02-18T18:03:04.108400Z

clojure -X:depstar uberjar :jar geremy.jar :aliases '[:webassets]' => corrupt jarfile

fabrao 2021-02-18T18:05:14.108800Z

It seems that inside jar is ok

seancorfield 2021-02-18T18:14:18.109200Z

@fabrao What do you mean by "corrupt jarfile"?

seancorfield 2021-02-18T19:11:02.110200Z

@fabrao ☝️:skin-tone-2: ?

fabrao 2021-02-18T19:12:24.111300Z

sorry, I run this command and after try to run java -jar geremy.jar and it shows up this

fabrao 2021-02-18T19:12:27.111500Z

message

seancorfield 2021-02-18T19:17:17.112400Z

You need to read depstar's readme more closely. It explains exactly this situation.

seancorfield 2021-02-18T19:17:51.112600Z

Create an uberjar by invoking depstar with the desired jar name:

clojure -X:depstar uberjar :jar MyProject.jar
An uberjar created by that command can be run as follows:

java -cp MyProject.jar clojure.main -m project.core

seancorfield 2021-02-18T19:18:17.112900Z

And in particular the next paragraph:

If you want to be able to use java -jar to run your uberjar, you'll need to specify the main class (namespace) in the uberjar and you'll probably want to AOT compile your main namespace. See the sections below for more information about both of those.

fabrao 2021-02-18T19:21:17.113400Z

understood