-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathbuild.sbt
79 lines (75 loc) · 2.48 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
75
76
77
78
79
import ReleaseTransformations._
val SCALA_2_11 = "2.11.11"
val SCALA_2_12 = "2.12.4"
val SCALA_2_13 = "2.13.0-M2"
val buildSettings = Seq[Setting[_]](
organization := "org.msgpack",
organizationName := "MessagePack",
organizationHomepage := Some(new URL("http://msgpack.org/")),
description := "MessagePack for Scala",
scalaVersion := SCALA_2_12,
crossScalaVersions := Seq(SCALA_2_13, SCALA_2_12, SCALA_2_11),
logBuffered in Test := false,
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")),
homepage := Some(url("https://github.com/msgpack/msgpack-scala")),
scmInfo := Some(
ScmInfo(
browseUrl = url("https://github.com/msgpack/msgpack-scala"),
connection = "scm:[email protected]:msgpack/msgpack-scala.git"
)
),
developers := List(
Developer(id = "xerial", name = "Taro L. Saito", email = "[email protected]", url = url("http://xerial.org/leo")),
Developer(id = "takezoux2", name = "Yositeru Takeshita", email = "[email protected]", url = url("https://github.com/takezoux2"))
),
// Use sonatype resolvers
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
),
// JVM options for building
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked", "-feature"),
// Release settings
publishTo := Some(
if (isSnapshot.value) {
Opts.resolver.sonatypeSnapshots
} else {
Opts.resolver.sonatypeStaging
}
),
releaseCrossBuild := true,
releaseTagName := { (version in ThisBuild).value },
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommand("publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)
)
// Project settings
lazy val root = Project(id = "msgpack-scala-root", base = file("."))
.settings(
buildSettings,
// Do not publish the root project
publishArtifact := false,
publish := {},
publishLocal := {}
).aggregate(msgpackScala)
lazy val msgpackScala = Project(id = "msgpack-scala", base = file("msgpack-scala"))
.settings(
buildSettings,
description := "MesasgePack for Scala",
libraryDependencies ++= Seq(
"org.msgpack" % "msgpack-core" % "0.8.13",
"org.scalatest" %% "scalatest" % "3.0.4" % "test",
"org.scalacheck" %% "scalacheck" % "1.13.5" % "test"
)
)