talios / clojure-maven-plugin

Apache Maven Mojo for compiling clojure scripts to class files
252 stars 74 forks source link

Maven seems to compile with wrong version of Clojure #92

Open deaddowney opened 9 years ago

deaddowney commented 9 years ago

I have a project that uses Korma, which has a function "update" which now clashes with clojure.core/update, introduced in 1.7. This clash results in a compilation error in AOT projects.

There was a fix in Clojure to address this issue which recently was patched into master: http://dev.clojure.org/jira/browse/CLJ-1604

My issue is that I have a project A which depends on a project B. Project A is compiled against the latest clojure with the fix. Project B is compiled against an earlier clojure without the fix. When I try to compile A, I get the compilation error, even if I depend on the new version of Clojure directly in A. If I remove my dependency on B, the compilation error goes away.

I've put an example project on Github: https://github.com/deaddowney/UpdateProblem