-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
48 lines (42 loc) · 1.35 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
import Dependencies._
name := "spray-json-derived-codecs"
lazy val scala212 = "2.12.18"
lazy val scala213 = "2.13.12"
lazy val scala3 = "3.3.1"
lazy val supportedScalaVersions = List(scala212, scala213, scala3)
ThisBuild / scalafmtOnCompile := false
ThisBuild / organization := "io.github.paoloboni"
ThisBuild / startYear := Some(2020)
lazy val root = (project in file("."))
.settings(
scalaVersion := scala3,
releaseCrossBuild := true,
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
scalaTest % Test
) ++ (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, _)) =>
Seq(
shapeless,
sprayJson,
scalacheckShapeless % Test,
scalacheck_2 % Test
)
case _ =>
Seq(
sprayJson.cross(CrossVersion.for3Use2_13),
scalacheck_3 % Test
)
})
)
.settings(scalacOptions --= Seq("-Vimplicits", "-Ywarn-value-discard"))
.enablePlugins(AutomateHeaderPlugin)
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
runClean,
runTest,
publishArtifacts,
releaseStepCommand("sonatypeReleaseAll")
)