-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
50 lines (46 loc) · 1.49 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
lazy val buildSettings = Seq(
organization := "com.github.finagle",
version := "0.2.0-SNAPSHOT",
scalaVersion := "2.11.12",
crossScalaVersions := Seq("2.11.12", "2.12.12", "2.13.3")
)
val baseSettings = Seq(
libraryDependencies ++= Seq(
"com.twitter" %% "finagle-http" % "20.9.0",
"org.scalatestplus" %% "scalacheck-1-14" % "3.2.2.0" % "test",
"org.scalatest" %% "scalatest" % "3.2.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-http-auth"),
"scm:git:[email protected]:finagle/finagle-http-auth.git"
)
),
pomExtra :=
<developers>
<developer>
<id>vkostyukov</id>
<name>Vladimir Kostyukov</name>
<url>http://vkostyukov.net</url>
</developer>
</developers>
)
lazy val allSettings = baseSettings ++ buildSettings ++ publishSettings
lazy val basicAuth = project.in(file("."))
.settings(moduleName := "finagle-http-auth")
.settings(allSettings)