Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lein ring does not put provided dependencies on the compiler classpath #162

Open
ekimber opened this issue Jun 3, 2015 · 0 comments
Open

Comments

@ekimber
Copy link

ekimber commented Jun 3, 2015

For example, this test project:

(defproject lein-ring-bug "0.1.0-SNAPSHOT"
            :dependencies [[org.clojure/clojure "1.6.0"]]
            :profiles {:provided
                       {:dependencies [[munge-tout "0.1.2"]]}}
            :plugins [[lein-ring "0.9.4"]]
            :ring {:handler lein-ring-bug.core/foo})

fails to compile

(ns lein-ring-bug.core
  (:require [munge-tout.core :refer [to-java]]))

(def x (to-java [java.util.List [String]] ["A" "B" "C"]))

Obviously it compiles fine if I put the dependency in the main dependencies list, but unfortunately we have a library jar that gets put in the servlet container libs so it must not appear in the war.

The workaround for now is to use :war-exclusions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant