-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
66 lines (61 loc) · 1.92 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
import ReleaseTransformations._
lazy val replicaSettings = Seq(
organization := "com.mthaler",
scalaVersion := "2.11.8",
crossScalaVersions := Seq("2.11.8", "2.12.8", "2.13.0"),
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
),
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-feature"
),
licenses += ("Apache License, Version 2.0", url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
homepage := Some(url("http://github.com/mthaler/replica")),
// release stuff
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
releaseCrossBuild := true,
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := Function.const(false),
publishTo := sonatypePublishTo.value,
pomExtra :=
<scm>
<url>git@github.com:mthaler/replica.git</url>
<connection>scm:git:git@github.com:mthaler/replica.git</connection>
</scm>
<developers>
<developer>
<id>m_t</id>
<name>Michael Thaler</name>
<url>http://github.com/mthaler/</url>
</developer>
</developers>
,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
ReleaseStep(action = Command.process("package", _)),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(action = Command.process("publishSigned", _)),
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
pushChanges))
lazy val noPublish = Seq(
publish := {},
publishLocal := {},
publishArtifact := false)
lazy val root = project.in(file("."))
.aggregate(core)
.settings(name := "root")
.settings(replicaSettings: _*)
.settings(noPublish: _*)
lazy val core = project.in(file("."))
.settings(name := "replica")
.settings(replicaSettings: _*)