-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.sbt
65 lines (52 loc) · 1.5 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
sbtPlugin := true
name := "sbt-stats"
organization := "com.orrsella"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"
scalacOptions ++= Seq("-feature")
// publishing
crossSbtVersions := Vector("0.13.16", "1.0.1")
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
pomExtra := (
<url>https://github.com/orrsella/sbt-stats</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:orrsella/sbt-stats.git</url>
<connection>scm:git:[email protected]:orrsella/sbt-stats.git</connection>
</scm>
<developers>
<developer>
<id>orrsella</id>
<name>Orr Sella</name>
<url>http://orrsella.com</url>
</developer>
</developers>
)
releasePublishArtifactsAction := PgpKeys.publishSigned.value
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommand("publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)