ClojureNRepl
Starts an nREPL server. Requires an external nREPL client for interaction.
Command-Line Arguments
All are optional. See Properties below for details.
-
--bind=<address>
-
--port=<port>
-
--ackPort=<port>
-
--handler=<symbol>
-
--middleware=<symbol> [--middleware=<symbol2> …]
$ ./gradlew clojureRepl --port=7555
Properties
Property | Type | Description |
---|---|---|
|
Classpath of the nREPL server JVM |
|
|
Address the server will listen on. (Defaults to |
|
|
Port the server will listen on. (Defaults to random open port.) |
|
|
Acknowledge the port of this server to another nREPL server running on |
|
|
The nREPL message handler to use for each incoming connection; defaults to the result of |
|
|
A sequence of vars, representing middleware you wish to mix in to the nREPL handler. |
|
|
Overrides the Java executable to use for the task’s JVM |
|
|
Configure JVM settings |
Example
To configure a REPL task:
tasks.named('clojureRepl')
classpath.from(configurations.other)
bind = '127.0.0.1'
port = 7555
ackPort = 8666
handler = 'cider/cider-nrepl-handler'
middleware = ['cider.nrepl/cider-middleware', 'cider.piggieback/wrap-cljs-repl']
forkOptions {
jvmArgs = ['-Xmx4g']
}
}
val clojureRepl by tasks.existing {
classpath.from(configurations.other)
bind = "127.0.0.1"
port = 7555
ackPort = 8666
handler = "cider/cider-nrepl-handler"
middleware = listOf("cider.nrepl/cider-middleware", "cider.piggieback/wrap-cljs-repl")
forkOptions {
jvmArgs = listOf("-Xmx4g")
}
}