-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
99 lines (94 loc) · 3.09 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
//To use Scalafix on Scala 3 projects, you must unset `scalafixBinaryScalaVersion`
//ThisBuild / scalafixScalaBinaryVersion := CrossVersion.binaryScalaVersion(scalaVersion.value)
inThisBuild(
List(
organization := "ru.tinkoff",
homepage := Some(url("https://github.com/Tinkoff/oolong")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"edubrovski",
"Eduard Dubrovsky",
url("https://github.com/edubrovski")
),
Developer(
"danslapman",
"Daniil Smirnov",
url("https://github.com/danslapman")
),
Developer(
"desavitsky",
"Denis Savitsky",
"-",
url("https://github.com/desavitsky")
),
Developer(
"Assassin4791",
"Assassin4791",
"-",
url("https://github.com/Assassin4791")
),
Developer(
"InversionSpaces",
"InversionSpaces",
url("https://github.com/InversionSpaces")
)
)
)
)
val `oolong-bson` = (project in file("oolong-bson"))
.settings(Settings.common)
.settings(
libraryDependencies ++= Seq(
("org.mongodb.scala" %% "mongo-scala-bson" % "4.6.1").cross(CrossVersion.for3Use2_13),
"com.softwaremill.magnolia1_3" %% "magnolia" % "1.1.4",
"org.scalatest" %% "scalatest" % "3.2.12" % Test,
"org.scalatestplus" %% "scalacheck-1-16" % "3.2.12.0" % Test,
"org.scalacheck" %% "scalacheck" % "1.16.0" % Test
),
Test / fork := true,
)
val `oolong-core` = (project in file("oolong-core"))
.settings(Settings.common)
.dependsOn(`oolong-bson`)
.settings(
libraryDependencies ++= Seq(
"com.lihaoyi" %% "pprint" % "0.7.3" % Compile,
"org.scalatest" %% "scalatest" % "3.2.12" % Test,
),
Test / fork := true
)
val `oolong-mongo` = (project in file("oolong-mongo"))
.settings(Settings.common)
.dependsOn(`oolong-core`, `oolong-bson`)
.settings(
libraryDependencies ++= Seq(
("org.mongodb.scala" %% "mongo-scala-driver" % "4.6.1" % Test).cross(CrossVersion.for3Use2_13),
"com.dimafeng" %% "testcontainers-scala-scalatest" % "0.40.8" % Test,
"com.dimafeng" %% "testcontainers-scala-mongodb" % "0.40.8" % Test,
"org.scalatest" %% "scalatest" % "3.2.12" % Test,
"org.slf4j" % "slf4j-api" % "1.7.36" % Test,
"org.slf4j" % "slf4j-simple" % "1.7.36" % Test,
),
Test / fork := true
)
val root = (project in file("."))
.settings(Settings.common)
.aggregate(`oolong-bson`, `oolong-core`, `oolong-mongo`)
.settings(
pullRemoteCache := {},
pushRemoteCache := {}
)
.settings(
addCommandAlias(
"fixCheck",
"scalafixAll --check; scalafmtCheck"
),
addCommandAlias(
"lintAll",
"scalafixAll; scalafmtAll"
)
)