File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
language-adaptors/rxjava-clojure Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 50
50
instruction ' Fragment-Host' , ' com.netflix.rxjava.core'
51
51
}
52
52
}
53
+
54
+
55
+ // //////////////////////////////////////////////////////////////////////////////
56
+ // Define a task that runs an nrepl server. The port is given with the nreplPort
57
+ // property:
58
+ // gradlew nrepl -PnreplPort=9999
59
+ // or put the property in ~/.gradle/gradle.properties
60
+
61
+ def nreplPortValue = (project. hasProperty(' nreplPort' ) && ! project. nreplPort. isEmpty()) ? project. nreplPort : ' 9999'
62
+ configurations { nrepl }
63
+ dependencies { nrepl ' org.clojure:tools.nrepl:0.2.2' }
64
+ task nrepl (type : JavaExec ) {
65
+ classpath configurations. nrepl,
66
+ project. sourceSets. main. clojure. srcDirs,
67
+ project. sourceSets. test. clojure. srcDirs,
68
+ sourceSets. main. runtimeClasspath,
69
+ sourceSets. test. runtimeClasspath
70
+
71
+ main = " clojure.main"
72
+ args ' --eval' , " (ns gradle-nrepl (:require [clojure.tools.nrepl.server :refer (start-server stop-server)]))" ,
73
+ ' --eval' , " (println \" Starting nrepl server on port $nreplPortValue \" )" ,
74
+ ' --eval' , " (def server (start-server :port $nreplPortValue ))"
75
+ }
You can’t perform that action at this time.
0 commit comments