boot

:boot-clj: https://boot-clj.github.io/ — build tooling for Clojure. Dev chat in #boot-dev
2018-10-24T09:04:03.000100Z

@dpsutton here is an example boot file with deps for creating uberjars https://github.com/dundalek/closh/blob/master/build.boot#L11 (cc: @seancorfield

👍 2
2018-10-24T09:05:08.000100Z

I ran into an issue with a git dependency that was overriding a nested dependency (tools.reader). This was "fixed" by adding several extra exclusions https://github.com/dundalek/closh/blob/master/deps.edn#L21-L25

joelkuiper 2018-10-24T17:26:19.000100Z

Is anyone aware of a tool or plugin for boot that lists all the top level dependencies (ideally with version / license info if available)?

joelkuiper 2018-10-24T17:26:37.000100Z

(or a maven / lein tool that does something like that 😛 )

joelkuiper 2018-10-24T17:38:12.000200Z

incidentally boot pom outputs nothing

seancorfield 2018-10-24T18:57:56.000100Z

boot show is going to get you close.

joelkuiper 2018-10-24T19:21:26.000100Z

./boot pom target generates the pom in the target folder, which after some manual changes can be used to run mvn site which does exactly what I need 🙂

joelkuiper 2018-10-24T19:21:49.000100Z

uses https://maven.apache.org/plugins/maven-site-plugin/

joelkuiper 2018-10-24T19:23:13.000100Z

(I needed to manually add some extra repositories like clojars and update the maven plugin to a more recent version)

2018-10-24T20:46:19.000100Z

I'm trying to discover the best way to have my java source code available in my cider emacs repl.

2018-10-24T20:46:56.000200Z

Should I put a (javac) in my repl task-option?

2018-10-24T20:48:28.000100Z

Or should I make a dev task that has (comp (javac) (repl)) and then get cider to use that task instead of the repl task?

alexyakushev 2018-10-24T21:06:47.000200Z

The latter should work

alexyakushev 2018-10-24T21:08:33.000100Z

You can also unmap the original repl task (ns-unmap 'repl) and define your own as (deftask repl [] (comp (javac) (boot.task.built-in/repl))). That way, for example, cider-jack-in will also compile the Java files.

alexyakushev 2018-10-24T21:09:53.000100Z

However, all these options force you to restart the REPL whenever you change Java files. For much more sane workflow, check https://github.com/ztellman/virgil#boot

2018-10-24T21:14:32.000100Z

wow! thanks @alexyakushev

2018-10-24T21:14:59.000100Z

I've been unsuccessfully playing with .dir-locals.el but no joy

2018-10-24T21:15:09.000100Z

I'll try virgil

2018-10-24T22:00:35.000100Z

Hmm, looks like there's a bug in virgil for my setup. I might just call (boot (javac)) from the repl - that seems to work.