-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
63 lines (57 loc) · 1.72 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
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
val Scala2_13 = "2.13.10"
val Scala2_12 = "2.12.17"
val supportedScalaVersions = List(Scala2_13, Scala2_12)
ThisBuild / scalaVersion := Scala2_13
ThisBuild / organization := "dev.nomadblacky"
ThisBuild / organizationName := "NomadBlacky"
lazy val commonSettings = Seq(
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-Xlint",
"-Xfatal-warnings",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Wconf:cat=unused-nowarn:s"
)
)
lazy val scaladog = (project in file("."))
.settings(commonSettings)
.settings(
name := "scaladog",
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
"com.lihaoyi" %% "requests" % "0.7.1",
"com.lihaoyi" %% "upickle" % "2.0.0",
"com.beachape" %% "enumeratum" % "1.7.2",
"org.scalatest" %% "scalatest" % "3.2.15" % Test,
"org.mockito" %% "mockito-scala-scalatest" % "1.17.12" % Test
),
releaseCrossBuild := true,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
ReleaseProcesses.setReleaseVersionToReadme,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)
)
lazy val integrationTests = (project in file("integrationTests"))
.dependsOn(scaladog % "test->test;compile->compile")
.settings(commonSettings)
.settings(
crossScalaVersions := supportedScalaVersions,
publishArtifact := false,
publish := {},
publishLocal := {}
)