Fork me on GitHub
#depstar
<
2021-02-18
>
fabrao18:02:04

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

fabrao18:02:14

It seems that inside jar is ok

seancorfield18:02:18

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

seancorfield19:02:02

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

fabrao19:02:24

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

seancorfield19:02:17

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

seancorfield19:02:51

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

seancorfield19:02:17

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.

fabrao19:02:17

understood