MacOS – clojure dependency for Java 1.5 only?

I hope this is not the subject of so (I hesitate between so and programmers. Stackexchange), but as far as I know, this is a "practical and answerable question unique to programming", so it meets the FAQ

In order to run which version of clojure (clojure on JVM, this problem is not about clojurescript), which version of JVM do you need?

Page here: http://clojure.org/getting_started express:

But is this always the case?

What about clojure ecosystems like leiningen?

Basically, I want to know if I can count on clojure to develop a desktop application that should run on the system, including OS X system. They will never get Java 6 or later versions of Java (for example, on some OS X versions. Apple says it will see its highlights without JVM 6

Solution

I am not clojure / core team, so I have no internal information, but this is how I deal with this situation

Get the latest version of clojure (1.5 at the time of writing) and test against Java 1.5 to get what you need to do and any clojure libraries you need to use and stick to If clojure 1.5 is compatible with Java 1.5, it will always be so, because the version is immutable

I won't assume that all clojure versions after 1.5 are Java 1.5 compatible. You can never assume that clojure library is For example, I just released a clojure library that requires Java 1.7 (because it uses the Java. Util. Concurrent class introduced in Java 1.7)

Because leiningen provides you with Maven like dependency resolution, if you test all libraries and the clojure version you choose are valid for Java 1.5, you can insist on using this set of versioned dependencies as long as you want to keep the application running Your only risk at this point is that some bug fixes for non - core libraries may no longer be compatible with Java 1.5 This risk is proportional to the number of non core clojure libraries you need to use

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>