-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
69 lines (67 loc) · 2.23 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
import ReleaseTransformations._
import sbtrelease.ReleasePlugin
lazy val `tryclose` =
(project in file("."))
.settings(commonSettings)
lazy val commonSettings = ReleasePlugin.extraReleaseCommands ++ Seq(
licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt")),
releaseCrossBuild := true,
organization := "com.github.choppythelumberjack",
scalaVersion := "2.11.12",
crossScalaVersions := Seq("2.11.12","2.12.4"),
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.4" % Test,
"com.h2database" % "h2" % "1.4.196" % Test
),
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
publishMavenStyle := 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")
},
releaseProcess := {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 11)) =>
Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)
case Some((2, 12)) =>
Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
setReleaseVersion,
publishArtifacts,
releaseStepCommand("sonatypeReleaseAll")
)
case _ => Seq[ReleaseStep]()
}
},
pomExtra := (
<url>http://github.com/getquill/foo</url>
<scm>
<connection>scm:git:git@github.com:choppythelumberjack/tryclose.git</connection>
<developerConnection>scm:git:git@github.com:choppythelumberjack/tryclose.git</developerConnection>
<url>https://github.com/choppythelumberjack/tryclose</url>
</scm>
<developers>
<developer>
<id>choppythelumberjack</id>
<name>Choppy The Lumberjack</name>
<url>https://github.com/choppythelumberjack</url>
</developer>
</developers>)
)