ClojureNRepl

Starts an nREPL server. Requires an external nREPL client for interaction.

Properties

Command-Line Property Type Description

N/A

forkOptions

ForkOptions

Configure JVM settings

N/A

classpath

ConfigurableFileCollection

Classpath of the nREPL server JVM

--bind=<address>

bind

Property<String>

Address the server will listen on. (Defaults to 127.0.0.1)

--port=<port>

port

Property<Integer>

Port the server will listen on. (Defaults to random open port.)

--ackPort=<port>

ackPort

Property<Integer>

Acknowledge the port of this server to another nREPL server running on ackPort.

--handler=ns/var

handler

Property<String>

The nREPL message handler to use for each incoming connection; defaults to the result of (nrepl.server/default-handler).

--middleware=ns/var [--middleware=ns2/var2 …​]

middleware

ListProperty<String>

A sequence of vars, representing middleware you wish to mix in to the nREPL handler.

Example

To configure your own REPL task:

build.gradle
tasks.register("myRepl", dev.clojurephant.plugin.clojure.tasks.ClojureNRepl) {
  classpath = configurations.runtimeClasspath
}