Fork me on GitHub
#emacs
<
2018-10-22
>
vemv11:10:36

Is this the proper way (in Lein project.clj) to have Java sources that can be found by CIDER?

[org.apache.kafka/kafka-streams "1.0.0"]
                 [org.apache.kafka/kafka-streams "1.0.0" :classifier "sources"]
                 [org.apache.kafka/kafka-streams "1.0.0" :classifier "javadoc"]
Didn't work for me, but IDK if that's the correct approach to begin with. Those additional deps are being fetched for sure:
~/.m2/repository/org/apache/kafka/kafka-streams/1.0.0 $ ls
_remote.repositories                 kafka-streams-1.0.0.jar
kafka-streams-1.0.0-javadoc.jar      kafka-streams-1.0.0.jar.sha1
kafka-streams-1.0.0-javadoc.jar.sha1 kafka-streams-1.0.0.pom
kafka-streams-1.0.0-sources.jar      kafka-streams-1.0.0.pom.sha1
kafka-streams-1.0.0-sources.jar.sha1

gnejs13:10:48

howdy.. just a quick sanity-check.. In Spacemacs (develop), when adding new Leiningen dependency with cljr-add-project-dependency the new classes are not available in the REPL. This used to work.. Is it just me, or a known issue?

gnejs13:10:25

Ah. Thanks a lot :thumbsup:

jeff.terrell15:10:18

Also, there's a channel dedicated to #spacemacs.

👍 4
bozhidar18:10:13

@vemv Looks like the correct approach to me. As long as the classes and the javadoc are on the classpath they should work just fine with CIDER.

vemv18:10:34

Thanks for the confirmation! Can eventually report a reproducible case.

bozhidar18:10:44

(although I also recall some reports that this broke for some people after Java 8)