-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
55 lines (51 loc) · 1.64 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
lazy val buildSettings = Seq(
organization := "com.github.finagle",
version := "0.1.0",
scalaVersion := "2.12.11",
crossScalaVersions := Seq("2.12.11", "2.13.2")
)
val baseSettings = Seq(
libraryDependencies ++= Seq(
"com.twitter" %% "finagle-core" % "21.4.0",
"io.rsocket" % "rsocket-core" % "1.1.0",
"io.rsocket" % "rsocket-transport-netty" % "1.1.0",
"org.scalacheck" %% "scalacheck" % "1.14.3" % Test,
"org.scalatest" %% "scalatest" % "3.1.2" % Test
)
)
lazy val publishSettings = Seq(
publishMavenStyle := true,
publishArtifact := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishArtifact in Test := false,
licenses := Seq(
"Apache 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
homepage := Some(url("https://github.com/finagle/finagle-oauth2")),
autoAPIMappings := true,
scmInfo := Some(
ScmInfo(
url("https://github.com/finagle/finagle-rsocket"),
"scm:git:[email protected]:finagle/finagle-rsocket.git"
)
),
pomExtra :=
<developers>
<developer>
<id>finagle</id>
<name>Finagle OSS</name>
<url>https://twitter.com/finagle</url>
</developer>
</developers>
)
lazy val allSettings = baseSettings ++ buildSettings ++ publishSettings
lazy val rsocket = project
.in(file("."))
.settings(moduleName := "finagle-rsocket")
.settings(allSettings)