forked from woshilaiceshide/s-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
69 lines (43 loc) · 2.09 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
organization := "woshilaiceshide"
name := "s-server"
version := "1.1"
description := "Some Small Servers written in Scala, including a nio server and a small httpd, which also supports websocket(v13 only)."
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
publishMavenStyle := true
enablePlugins(BintrayPlugin)
pomIncludeRepository := {_ => false}
bintrayRepository := "maven"
bintrayOrganization := None
bintrayVcsUrl := Some(s"[email protected]:woshilaiceshide/${name.value}.git")
bintrayReleaseOnPublish in ThisBuild := false
compileOrder in Compile := CompileOrder.Mixed
transitiveClassifiers := Seq("sources")
EclipseKeys.withSource := true
scalaVersion := "2.11.7"
scalacOptions := Seq("-unchecked", "-deprecation","-optimise", "-encoding", "utf8", "-Yno-adapted-args")
javacOptions ++= Seq("-Xlint:deprecation", "-Xlint:unchecked", "-source", "1.7", "-target", "1.7", "-g:vars")
retrieveManaged := false
enablePlugins(JavaAppPackaging)
net.virtualvoid.sbt.graph.Plugin.graphSettings
unmanagedSourceDirectories in Compile <+= baseDirectory( _ / "src" / "java" )
unmanagedSourceDirectories in Compile <+= baseDirectory( _ / "src" / "scala" )
libraryDependencies ++= {
val akkaV = "2.3.12"
val sprayV = "1.3.3"
Seq(
//"io.spray" %% "spray-routing" % sprayV,
//"io.spray" %% "spray-caching" % sprayV,
"io.spray" %% "spray-can" % sprayV,
//"io.spray" %% "spray-client" % sprayV,
"io.spray" %% "spray-http" % sprayV,
//"io.spray" %% "spray-httpx" % sprayV,
"io.spray" %% "spray-io" % sprayV,
//"io.spray" %% "spray-testkit" % sprayV,
"io.spray" %% "spray-util" % sprayV,
//"com.typesafe.akka" %% "akka-testkit" % akkaV,
"com.typesafe.akka" %% "akka-actor" % akkaV
//"com.typesafe.akka" %% "akka-slf4j" % akkaV
)
}
mappings in Universal ++= (baseDirectory.value / "conf" * "*" get) map (x => x -> ("conf/" + x.getName))
mainClass in Compile := Some("woshilaiceshide.sserver.EchoServer")