I would like to use some of the Clojure interfaces in a Java library project in several situations where it would be useful for my Java classes to implement them. In particular:
Doing this would make my Java library much more user-friendly for Clojure-based users.
However I don't want to import the whole of clojure.jar
as a dependency - since it is relatively large and my library is mainly targeted at Java users.
Is there a way to import and develop against the Clojure interfaces without bringing in the rest of Clojure?
Try it:
如果你使用的是Maven,你可以使用Maven Shade Plugin的minim-jar配置。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.