This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
forked from ariskk/zio-raft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
104 lines (93 loc) · 2.85 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import sbtrelease.ReleaseStateTransformations._
// TODO Add GitHub BOT to automatically upgrade the version
lazy val scala212 = "2.12.14"
lazy val scala213 = "2.13.7"
lazy val zioVersion = "1.0.13"
inThisBuild(
List(
scalaVersion := scala213,
version := "0.2.0-SNAPSHOT",
organization := "com.ariskk",
developers := List(
Developer(
"ariskk",
"Kyriakos Aris Koliopoulos",
url("http://ariskk.com")
)
)
)
)
lazy val zioDeps = Seq(
"dev.zio" %% "zio" % zioVersion
)
lazy val rocksDBVersion = "6.11.4"
lazy val rocksDbDeps = Seq(
"org.rocksdb" % "rocksdbjni" % rocksDBVersion
)
lazy val testDepds = Seq(
"dev.zio" %% "zio-test" % zioVersion % Test,
"dev.zio" %% "zio-test-sbt" % zioVersion % Test,
"org.scalatest" %% "scalatest" % "3.2.0" % Test
)
lazy val otherDepds = Seq(
"com.chuusai" %% "shapeless" % "2.3.9",
"com.twitter" %% "chill" % "0.9.5"
)
lazy val CompileTest = "compile->compile;test->test"
lazy val core = (project in file("core")).settings(
Publishing.publishSettings,
name := "zio-raft",
)
lazy val rocksdb = (project in file("rocksdb"))
.settings(
libraryDependencies ++= rocksDbDeps,
publish / skip := true,
name := "zio-raft-rocksdb",
Publishing.publishSettings
)
.dependsOn(core % CompileTest)
lazy val server = (project in file("server"))
.settings(
libraryDependencies += "dev.zio" %% "zio-nio" % "1.0.0-RC12",
publish / skip := true,
name := "zio-raft-server",
Publishing.publishSettings
)
.dependsOn(
core % CompileTest,
rocksdb % CompileTest
)
lazy val root = (project in file("."))
.settings(commands ++= Commands.value)
.settings(
ThisBuild / libraryDependencies ++= zioDeps ++ testDepds ++ otherDepds,
crossScalaVersions := List(scala213, scala212),
ThisBuild / testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
ThisBuild / scalacOptions ++= List(
"-Wunused:imports"
),
publish / skip := true,
ThisBuild / scalafixDependencies += "com.nequissimus" %% "sort-imports" % "0.6.1",
releaseIgnoreUntrackedFiles := true,
releaseTagName := (ThisBuild / version).value,
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
releaseStepCommandAndRemaining("+compile"),
releaseStepCommandAndRemaining("test"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
setNextVersion,
commitNextVersion,
pushChanges
),
addCompilerPlugin(scalafixSemanticdb),
ThisBuild / semanticdbEnabled := true,
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision
)
.aggregate(core, rocksdb, server)