This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-13
Channels
- # babashka (7)
- # babashka-sci-dev (3)
- # beginners (29)
- # biff (16)
- # calva (2)
- # clojars (1)
- # clojure (50)
- # clojure-austin (5)
- # clojure-europe (29)
- # clojure-france (8)
- # clojure-nl (3)
- # clojure-uk (3)
- # clojured (10)
- # clojurescript (19)
- # code-reviews (3)
- # core-async (22)
- # cursive (5)
- # data-science (11)
- # datalevin (1)
- # datomic (10)
- # eastwood (4)
- # helix (4)
- # introduce-yourself (2)
- # jobs (1)
- # jobs-discuss (1)
- # joyride (6)
- # leiningen (4)
- # london-clojurians (2)
- # lsp (82)
- # malli (7)
- # meander (12)
- # minecraft (3)
- # nbb (14)
- # off-topic (52)
- # podcasts-discuss (3)
- # portal (3)
- # re-frame (32)
- # reagent (9)
- # releases (2)
- # shadow-cljs (95)
- # tools-deps (14)
Hey there! I have a mixed project with Clojure(Script) and Java, located in src/clj
, src/cljs
and src/java
. Leiningen is configured with :java-source-paths ["src/java" "test/java"]
. So far so good.
When running lein javac
, a ClassNotFound exception is thrown because the Clojure code is compiled first and fails to locate the Java .class. When I remove all references to Java from my Clojure code, I can run lein javac
, and afterwards compile the (restored) Clojure code. Of course I’d like to avoid that step.
Is there any way I can make Leiningen compile the Java code first (which is self-contained; does not have a reference to Clojure code)?