-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sbt
48 lines (40 loc) · 1.56 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
import ReleaseTransformations._
import Dependencies._
lazy val baseSettings = Seq(
scalaVersion := "2.13.12",
// crossScalaVersions := Seq(scalaVersion.value, "3.3.1"),
organization := "com.madgag.scala-git",
scmInfo := Some(ScmInfo(
url("https://github.com/rtyley/scala-git"),
"scm:git:[email protected]:rtyley/scala-git.git"
)),
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
scalacOptions ++= Seq("-deprecation", "-unchecked"),
libraryDependencies ++= Seq(madgagCompress % Test, scalatest % Test)
)
lazy val `scala-git` = project.settings(baseSettings: _*).dependsOn(`scala-git-test` % Test)
lazy val `scala-git-test` = project.in(file("scala-git-test")).settings(baseSettings: _*)
ThisBuild / Test / testOptions +=
Tests.Argument(TestFrameworks.ScalaTest, "-u", s"test-results/scala-${scalaVersion.value}", "-o")
lazy val root = (project in file(".")).aggregate(`scala-git`, `scala-git-test`).
settings(baseSettings: _*).settings(
publishArtifact := false,
publish := {},
publishLocal := {},
releaseCrossBuild := true, // true if you cross-build the project for multiple Scala versions
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
// For non cross-build projects, use releaseStepCommand("publishSigned")
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)
)