-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
53 lines (48 loc) · 1.75 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
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")),
scalaVersion := crossScalaVersions.value.head,
crossScalaVersions := Seq("2.13.15", "3.3.4"),
Compile / doc / scalacOptions ++= Seq("-groups", "-implicits", "-no-link-warnings"),
publishTo := Some(Resolver.evolutionReleases),
licenses := Seq(("MIT", url("https://opensource.org/licenses/MIT"))),
releaseCrossBuild := true)
val alias: Seq[sbt.Def.Setting[_]] =
// addCommandAlias("check", "all versionPolicyCheck Compile/doc") ++
addCommandAlias("check", "show version") ++
addCommandAlias("build", "+all compile test")
lazy val root = (project in file(".")
settings (name := "cassandra-sync")
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)))