Fork me on GitHub
#luminus
<
2016-12-01
>
juliobarros05:12:42

I’m trying to add a java class to my luminus project but am having problems compiling. When I do a 'lein javac' I get a class not found error from the clojure namespace that needs the java class. This works fine in other projects. Could the default luminus project.clj somehow be causing lein to try to load the clojure namespace when it goes to compile the java file? Thanks in advance for any ideas.

hiron13:12:54

It sounds like you need to set :java-source-paths in your defproject declaration.

roelofw15:12:01

Can I have a template with just compojure, ring and Selmer with luminus ?

hiron15:12:25

I think lein new luminus my-projectdoes that doesn't it?

roelofw15:12:49

I have to try

roelofw15:12:27

@hiron : nope, then I have a lot more , I have bower, bootstrap, font-awesome and jquery also among libraries I do not know

hiron15:12:52

I think you'll have to remove those from the <head> of resources/templates/base.html

hiron15:12:21

and also, at the end of the body

roelofw15:12:54

oke, thanks

hiron15:12:39

also you would remove [org.webjars.bower/tether "1.3.7"] from your dependencies I think

hiron15:12:01

no problem

roelofw17:12:32

Another question : is code who reads a api to get data that must be displayed also middleware ?

roelofw18:12:10

or is it more utils.clj ?

juliobarros19:12:03

@hiron: thanks for the response. Turned out to be a bit more subtle than that. The user namespace in the dev profile pulls in my apps clojure code (which depends on the java class) so ran into the dependency loop. Ended up creating another namespace for stop and start and leaving user pretty empty. Works now.