Fork me on GitHub
#depstar
<
2021-07-26
>
gleisonsilva09:07:16

Hello! How can I set the target JDK version when building a Jar with depstar? I do need to target JDK 1.7, but I couldn't find how...

ghadi13:07:13

clojure is unsupported on JDK 1.7

ghadi13:07:45

well, clojure >= 1.10.0

gleisonsilva14:07:09

This is a legacy app, where JDK is in place.. so Clojure 1.8.0 as well

seancorfield15:07:14

Well, if you can tell Clojure itself to target 1.7 via JVM opts, you can tell depstar to use those opts for compilation https://cljdoc.org/d/com.github.seancorfield/depstar/2.1.267/doc/all-the-options

seancorfield15:07:37

(I don't know if such JVM options exist for Clojure?)

seancorfield15:07:31

You'll already need an alias for Clojure 1.8 and you'll need to supply that to depstar via :aliases right?