Skip to content

Commit 47b9620

Browse files
author
Josh Devins
committed
Added Akka/Spray to SBT build
1 parent ae76431 commit 47b9620

File tree

2 files changed

+40
-12
lines changed

2 files changed

+40
-12
lines changed

build.sbt

+31-11
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name := "GIS Shapes Reverse Geocoder"
22

3+
organization := "net.joshdevins.gis"
4+
35
version := "0.0.1"
46

57
scalaVersion := "2.9.0-1"
68

9+
ivyLoggingLevel := UpdateLogging.Full
10+
711
// dependencies
812
// geo
913
{
@@ -12,20 +16,36 @@ scalaVersion := "2.9.0-1"
1216
libraryDependencies += "org.geotools" % "gt-shapefile" % geotoolsVersion
1317
}
1418

15-
// test
16-
libraryDependencies += "com.novocode" % "junit-interface" % "0.7" % "test->default"
19+
// Akka/Spray
20+
libraryDependencies ++= Seq(
21+
"se.scalablesolutions.akka" % "akka" % "1.1.3",
22+
"cc.spray" %% "spray-http" % "0.7.0" % "compile" withSources(),
23+
"cc.spray" %% "spray-server" % "0.7.0" % "compile" withSources()
24+
)
1725

18-
libraryDependencies += "junit" % "junit" % "4.8.1" % "test"
26+
// logging
27+
libraryDependencies ++= Seq(
28+
"se.scalablesolutions.akka" % "akka-slf4j" % "1.1.3",
29+
"ch.qos.logback" % "logback-classic" % "0.9.29" % "runtime"
30+
)
1931

20-
libraryDependencies += "org.scala-tools.testing" %% "scalacheck" % "1.9" % "test"
32+
// test
33+
libraryDependencies ++= Seq(
34+
"com.novocode" % "junit-interface" % "0.7" % "test->default",
35+
"junit" % "junit" % "4.8.1" % "test",
36+
"org.scala-tools.testing" %% "scalacheck" % "1.9" % "test",
37+
"org.eclipse.jetty" % "jetty-server" % "8.0.0.M3" % "jetty",
38+
"org.eclipse.jetty" % "jetty-webapp" % "8.0.0.M3" % "jetty"
39+
)
2140

2241
// plugins
23-
seq(sbtassembly.Plugin.assemblySettings: _*)
42+
seq(sbtassembly.Plugin.assemblySettings: _*) // assembly
2443

25-
// resolvers
26-
resolvers += "Nexus Public Repo" at "http://nexus.places.devbln.europe.nokia.com/nexus/content/groups/public/"
27-
28-
resolvers += "Nexus Public Snapshots Repo" at "http://nexus.places.devbln.europe.nokia.com/nexus/content/groups/public-snapshots/"
44+
seq(webSettings :_*) // web settings
2945

30-
// other
31-
ivyLoggingLevel := UpdateLogging.Full
46+
// resolvers
47+
resolvers ++= Seq(
48+
"Nexus Public Repo" at "http://nexus.places.devbln.europe.nokia.com/nexus/content/groups/public/",
49+
"Nexus Public Snapshots Repo" at "http://nexus.places.devbln.europe.nokia.com/nexus/content/groups/public-snapshots/",
50+
"Akka Repository" at "http://akka.io/repository"
51+
)

project/plugins/build.sbt

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11

2+
// akka -- https://github.com/jboner/akka/tree/master/akka-sbt-plugin
3+
libraryDependencies ++= Seq(
4+
"se.scalablesolutions.akka" % "akka-sbt-plugin" % "1.1.3"
5+
)
6+
7+
// web -- https://github.com/siasia/xsbt-web-plugin
8+
libraryDependencies <+= (sbtVersion) { v => "com.github.siasia" %% "xsbt-web-plugin" % ("0.1.0-" + v) }
9+
210
// assembly -- https://github.com/eed3si9n/sbt-assembly
3-
libraryDependencies <+= (sbtVersion) { sv => "com.eed3si9n" %% "sbt-assembly" % ("sbt" + sv + "_0.6") }
11+
libraryDependencies <+= (sbtVersion) { v => "com.eed3si9n" %% "sbt-assembly" % ("sbt" + v + "_0.6") }

0 commit comments

Comments
 (0)