forked from pbuda/scalawebsocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
70 lines (53 loc) · 1.88 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
69
70
name := "scalawebsocket"
homepage := Some(url("https://github.com/marcsaegesser/scalawebsocket"))
licenses := Seq("Apache License 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
organization := "org.saegesser"
version := "0.2.1"
scalaVersion := "2.11.12"
crossScalaVersions := List("2.11.12", "2.12.4")
fork in Test := true
libraryDependencies ++= Seq(
"org.scala-stm" %% "scala-stm" % "0.8",
"org.asynchttpclient" % "async-http-client" % "2.0.38",
//logging
"com.typesafe.scala-logging" %% "scala-logging" % "3.7.2",
"ch.qos.logback" % "logback-classic" % "1.2.3",
//jetty is used to setup test server
"org.eclipse.jetty" % "jetty-server" % "8.1.7.v20120910" % "test",
"org.eclipse.jetty" % "jetty-websocket" % "8.1.7.v20120910" % "test",
"org.eclipse.jetty" % "jetty-servlet" % "8.1.7.v20120910" % "test",
"org.eclipse.jetty" % "jetty-servlets" % "8.1.7.v20120910" % "test",
"org.scalatest" %% "scalatest" % "3.0.4" % "test"
)
credentials += Credentials(Path.userHome / ".credentials.sonatype")
publishMavenStyle := true
publishTo <<= version {
(v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishArtifact in Test := false
pomIncludeRepository := {
_ => false
}
pomExtra := (
<scm>
<url>[email protected]:marcsaegesser/scalawebsocket.git</url>
<connection>scm:git:[email protected]:marcsaegesser/scalawebsocket.git</connection>
</scm>
<developers>
<developer>
<id>marcsaegesser</id>
<name>Marc Saegesser</name>
<url>https://github.com/marcsaegesser</url>
</developer>
<developer>
<id>pbuda</id>
<name>Piotr Buda</name>
<url>http://www.piotrbuda.eu</url>
</developer>
</developers>
)