-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
67 lines (52 loc) · 1.87 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
import ReleaseTransformations._
ThisBuild / organization := "net.ruippeixotog"
ThisBuild / scalaVersion := "2.13.12"
lazy val core = (project in file("core"))
.settings(commonSettings)
lazy val classic = (project in file("classic"))
.settings(commonSettings)
.dependsOn(core)
lazy val typed = (project in file("typed"))
.settings(commonSettings)
.dependsOn(core)
lazy val bundle = (project in file("bundle"))
.settings(commonSettings)
.dependsOn(classic, typed)
lazy val commonSettings = Seq(
// format: off
crossScalaVersions := Seq("2.12.18", "2.13.12", "3.3.1"),
libraryDependencies ++= Seq("org.specs2" %% "specs2-core" % "4.20.2"),
scalafmtOnCompile := true,
publishTo := sonatypePublishToBundle.value,
publishMavenStyle := true,
Test / publishArtifact := false,
pomIncludeRepository := { _ => false },
licenses := Seq("MIT License" -> url("http://www.opensource.org/licenses/mit-license.php")),
homepage := Some(url("https://github.com/ruippeixotog/akka-testkit-specs2")),
scmInfo := Some(ScmInfo(
url("https://github.com/ruippeixotog/akka-testkit-specs2"),
"scm:git:https://github.com/ruippeixotog/akka-testkit-specs2.git")),
developers := List(
Developer("ruippeixotog", "Rui Gonçalves", "ruippeixotog@gmail.com", url("https://github.com/ruippeixotog")))
// format: on
)
// do not publish the root project
publish / skip := true
publishArtifact := false
releaseCrossBuild := true
releaseTagComment := s"Release ${(ThisBuild / version).value}"
releaseCommitMessage := s"Set version to ${(ThisBuild / version).value}"
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)