-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.sbt
70 lines (65 loc) · 2.19 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
import ReleaseTransformations._
lazy val xmlConfectSettings = Seq(
organization := "com.mthaler",
scalaVersion := "2.11.12",
crossScalaVersions := Seq("2.11.12", "2.12.11", "2.13.3"),
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.scala-lang.modules" %% "scala-xml" % "1.3.0",
"org.scalatest" %% "scalatest" % "3.2.0" % "test",
"org.scalatest" %% "scalatest-funsuite" % "3.2.0" % "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/xmlconfect")),
// 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/xmlconfect.git</url>
<connection>scm:git:git@github.com:mthaler/xmlconfect.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(xmlConfectSettings: _*)
.settings(noPublish: _*)
lazy val core = project.in(file("."))
.settings(name := "xmlconfect")
.settings(xmlConfectSettings: _*)
.enablePlugins(spray.boilerplate.BoilerplatePlugin) // generate boilerplate