-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
67 lines (56 loc) · 1.65 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
organization := "com.github.kiris"
name := "zaim4s"
scalaVersion := "2.12.2"
crossScalaVersions := Seq("2.11.2", "2.11.8")
homepage := Some(url("http://github.com/kiris/zaim4s"))
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
resolvers ++= Seq(
"Sonatype releases" at "https://oss.sonatype.org/content/repositories/releases/",
"Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/"
)
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.6.0",
"net.databinder.dispatch" %% "dispatch-core" % "0.13.0",
"com.github.tototoshi" %% "play-json-naming" % "1.2.0",
"org.slf4j" % "slf4j-api" % "1.7.25" % "compile",
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"ch.qos.logback" % "logback-classic" % "1.2.3" % "test"
)
publishMavenStyle := true
publishArtifact in Test := false
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
sonatypeProfileName := "com.github.kiris"
scmInfo := Some(
ScmInfo(
url("https://github.com/kiris/zaim4s"),
"scm:git:[email protected]:kiris/zaim4s.git"
)
)
developers := List(
Developer(
id = "kiris",
name = "Yoshiaki Iwanaga",
email = "[email protected]",
url = url("http://kiris.github.com")
)
)
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(action = Command.process("publishSigned", _)),
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
pushChanges
)