-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathbuild.sbt
74 lines (68 loc) · 2.17 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
71
72
73
74
import ReleaseTransformations._
lazy val finagleVersion = "19.8.0"
lazy val buildSettings = Seq(
organization := "com.github.finagle",
scalaVersion := "2.12.7",
crossScalaVersions := Seq("2.11.12", "2.12.7")
)
val baseSettings = Seq(
libraryDependencies ++= Seq(
"com.twitter" %% "finagle-http" % finagleVersion,
"org.scalacheck" %% "scalacheck" % "1.14.0" % Test,
"org.scalatest" %% "scalatest" % "3.0.8" % 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,
pgpSecretRing := file("local.secring.gpg"),
pgpPublicRing := file("local.pubring.gpg"),
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
releaseIgnoreUntrackedFiles := true,
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-oauth2"),
"scm:git:git@github.com:finagle/finagle-oauth2.git"
)
),
releaseVersionBump := sbtrelease.Version.Bump.Minor,
releaseProcess := {
Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
releaseStepCommandAndRemaining("+clean"),
releaseStepCommandAndRemaining("+test"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)
},
pomExtra :=
<developers>
<developer>
<id>vkostyukov</id>
<name>Vladimir Kostyukov</name>
<url>https://kostyukov.net</url>
</developer>
</developers>
)
lazy val allSettings = baseSettings ++ buildSettings ++ publishSettings
lazy val oauth2 = project.in(file("."))
.settings(moduleName := "finagle-oauth2")
.settings(allSettings)