Commits

Vetle Leinonen-Roeim  committed 4b8500d

* Added configuration to publish to repository at roeim.net
* Added documentation on how to add repository and dependency

  • Participants
  • Parent commits 210c2f3

Comments (0)

Files changed (2)

 # MiniHttpServer
 
-A minimal library for embedding an HTTP server, written in Scala. To use it, extend *MiniHttpServer* and define routes, as shown here in an example taken from the test code:
+A minimal library for embedding an HTTP server, written in Scala.
+
+## How to use
+
+Assuming you use SBT, add the following resolver and library dependencies:
+
+    :::scala
+    resolvers += "Roeim.net repository" at "http://roeim.net/maven"
+
+    libraryDependencies ++= Seq(
+      "net.roeim.minihttpserver" %% "minihttpserver" % "0.1"
+    )
+
+
+Next, extend *MiniHttpServer* and define routes, as shown here in an example taken from the test code:
 
     :::scala
     class TestServer extends MiniHttpServer {
     // and when you're done:
     server.stop()
 
-Build it with SBT first, of course. GL&HF!
+GL&HF!
 name := "minihttpserver"
 
+organization := "net.roeim.minihttpserver"
+
 version := "0.1"
 
 libraryDependencies ++= Seq(
 		    "org.apache.httpcomponents" % "httpclient" % "4.2" % "test",
 		    "org.scalatest" %% "scalatest" % "1.8" % "test"
-)
+)
+
+publishTo := Some(Resolver.sftp("My Maven Repo", "roeim.net", "/var/www/maven/"))