-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
74 lines (61 loc) · 2.71 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
71
72
73
74
import sbt.Keys.libraryDependencies
import ReleaseTransformations.*
name := "simple-scala-json-rpc"
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies, // : ReleaseStep
inquireVersions, // : ReleaseStep
runClean, // : ReleaseStep
runTest, // : ReleaseStep
setReleaseVersion, // : ReleaseStep
commitReleaseVersion, // : ReleaseStep, performs the initial git checks
tagRelease, // : ReleaseStep
setNextVersion, // : ReleaseStep
commitNextVersion, // : ReleaseStep
pushChanges // : ReleaseStep, also checks that an upstream branch is properly configured
)
lazy val common = List(
releaseTagName := s"${if (releaseUseGlobalVersion.value) (ThisBuild / version).value else version.value}"
)
lazy val scala212 = "2.12.16"
lazy val scala213 = "2.13.10"
lazy val supportedScalaVersions = List(scala212, scala213)
ThisBuild / scalaVersion := scala213
ThisBuild / scalacOptions ++= List(
"-Wvalue-discard"
)
releaseTagName := s"${if (releaseUseGlobalVersion.value) (ThisBuild / version).value else version.value}"
val publishing = List(
organization := "com.yarhrn",
homepage := Some(url("https://github.com/yarhrn/simple-scala-json-rpc")),
scmInfo := Some(ScmInfo(url("https://github.com/yarhrn/simple-scala-json-rpc"), "[email protected]:yarhrn/simple-scala-json-rpc.git")),
developers := List(Developer("Yaroslav Hryniuk",
"Yaroslav Hryniuk",
url("https://github.com/yarhrn"))),
licenses += ("MIT", url("https://github.com/yarhrn/simple-scala-json-rpc/blob/main/LICENSE")),
publishMavenStyle := true
)
val http4sVersion = "0.23.18"
lazy val sttp = (project in file("sttp")).dependsOn(core)
.settings(
name := "simple-scala-json-rpc-sttp",
publishing,
// libraryDependencies += "com.softwaremill.sttp.client3" %% "async-http-client-backend-cats" % "3.5.2",
// libraryDependencies += "org.typelevel" %% "cats-effect" % "3.3.11",
libraryDependencies += "com.softwaremill.sttp.client3" %% "core" % "3.9.7",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % Test,
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-dsl" % http4sVersion % Test,
"org.http4s" %% "http4s-ember-server" % http4sVersion % Test,
"org.http4s" %% "http4s-ember-client" % http4sVersion % Test,
"com.softwaremill.sttp.client3" %% "async-http-client-backend-cats" % "3.9.7" % Test
),
common
)
lazy val core = (project in file("core")).settings(
name := "simple-scala-json-rpc-core",
publishing,
libraryDependencies += "org.typelevel" %% "cats-core" % "2.12.0",
libraryDependencies += "org.playframework" %% "play-json" % "3.0.4",
common
)