leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
rborer 2020-09-03T10:06:10.009400Z

Howdy, is there a way to compile clojure code into Java 7 class format? Asking because for an obscure reason I still need to run JDK7 on some services and I get the following error: java.lang.UnsupportedClassVersionError: check_jmx/core : Unsupported major.minor version 52.0 . Note that I already tried tweaking :javac-opts in project.clj, according to the sample file this only impact java sources, not clojure.

alexmiller 2020-09-03T12:19:20.010800Z

This is not a property you can change - Clojure always compiles to Java 8 bytecode.

alexmiller 2020-09-03T12:19:43.011400Z

You could use an older version of Clojure though

alexmiller 2020-09-03T12:24:03.012500Z

Versions prior to Clojure 1.10 used Java 6 bytecode

rborer 2020-09-03T19:07:42.013300Z

Thanks Alex, I did not realize it was controlled by Clojure directly. Let me try with Clojure 1.9 then

rborer 2020-09-03T19:19:11.013700Z

works :thumbsup:, thanks again