Skip to content

Instantly share code, notes, and snippets.

@RaymondKroon
Last active August 29, 2015 14:14
Show Gist options
  • Save RaymondKroon/f9a12757eb40bccebc9b to your computer and use it in GitHub Desktop.
Save RaymondKroon/f9a12757eb40bccebc9b to your computer and use it in GitHub Desktop.
Vertx repl cider support
(ns vertx-test.core
(:require [vertx.core :as vertx]
[vertx.repl :as vrepl]
[cider.nrepl]))
(defn init
[]
(vrepl/start 0 "0.0.0.0" :handler 'cider.nrepl/cider-nrepl-handler
)
(vertx/periodic 1000
(println "I'm working!"))
)
(defproject vertx-test "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"][cider/cider-nrepl "0.8.1"]]
:plugins [[lein-vertx "0.3.1"]]
:vertx {:main vertx-test.core/init
:author "FIXME: Your name"
:keywords ["FIXME: keywords"]
:developers ["FIXME: other developers"]})
It's not that hard, but I tend to easily forget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment