-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.sbt
More file actions
63 lines (58 loc) · 2 KB
/
Copy pathbuild.sbt
File metadata and controls
63 lines (58 loc) · 2 KB
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 Dependencies.*
lazy val commonSettings = Seq(
organization := "com.evolutiongaming",
homepage := Some(url("https://github.com/evolution-gaming/cassandra-sync")),
startYear := Some(2018),
organizationName := "Evolution",
organizationHomepage := Some(url("https://evolution.com")),
versionPolicyIntention := Compatibility.BinaryCompatible,
scalaVersion := crossScalaVersions.value.head,
crossScalaVersions := Seq("2.13.18", "3.3.8"),
Compile / doc / scalacOptions ++= Seq("-groups", "-implicits", "-no-link-warnings"),
publishTo := Some(Resolver.evolutionReleases),
licenses := Seq(("MIT", url("https://opensource.org/licenses/MIT"))),
Test / scalacOptions -= "-Wnonunit-statement",
)
val alias: Seq[sbt.Def.Setting[?]] =
addCommandAlias("fmt", "+all scalafmtRepo") ++
addCommandAlias("check", "all versionPolicyCheck Compile/doc scalafmtCheckRepo") ++
addCommandAlias("build", "all compile test")
lazy val root =
(project in file(".")
settings (name := "cassandra-sync")
settings (normalizedName := "root")
settings commonSettings
settings alias
settings (
publish / skip := true,
skip / publishArtifact := true,
)
aggregate (`cassandra-sync`, tests))
lazy val `cassandra-sync` =
(project in file("cassandra-sync")
settings (name := "cassandra-sync")
settings commonSettings
settings (libraryDependencies ++= Seq(
`future-helper`,
scalatest % Test,
scassandra,
)))
lazy val tests =
(project in file("tests")
settings (name := "tests")
settings commonSettings
settings Seq(
publish / skip := true,
skip / publishArtifact := true,
Test / fork := true,
Test / parallelExecution := false,
)
dependsOn `cassandra-sync` % "test->test;compile->compile"
settings (libraryDependencies ++= Seq(
`testcontainers-cassandra` % Test,
Slf4j.api % Test,
Slf4j.`log4j-over-slf4j` % Test,
Logback.core % Test,
Logback.classic % Test,
scalatest % Test,
)))