-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
91 lines (83 loc) · 3.05 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
val zioVersion = "2.0.13"
val scala3_Version = "3.3.1"
val scala2_13Version = "2.13.12"
val scala2_12Version = "2.12.18"
val testcontainersVersion = "1.19.0"
val scalaCollectionCompatVersion = "2.11.0"
val logbackVersion = "1.4.2"
val nebulaJavaClientVersion = "3.6.1"
val zioNebulaVersion = "0.1.1"
val supportCrossVersionList = Seq(scala3_Version, scala2_13Version, scala2_12Version)
inThisBuild(
List(
scalaVersion := supportCrossVersionList.head,
homepage := Some(url("https://github.com/nebula-contrib/testcontainers-nebula")),
licenses := List("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")),
organization := "io.github.jxnu-liguobin",
organizationName := "梦境迷离",
developers := List(
Developer(
id = "jxnu-liguobin",
name = "梦境迷离",
email = "dreamylost@outlook.com",
url = url("https://github.com/jxnu-liguobin")
)
)
)
)
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
val _zioTests = Seq(
"dev.zio" %% "zio-test-magnolia" % zioVersion,
"dev.zio" %% "zio-test" % zioVersion,
"dev.zio" %% "zio-test-sbt" % zioVersion
)
lazy val core = project
.in(file("core"))
.settings(
name := "testcontainers-nebula",
crossScalaVersions := supportCrossVersionList,
libraryDependencies ++= Seq(
"org.testcontainers" % "testcontainers" % testcontainersVersion,
"org.scala-lang.modules" %% "scala-collection-compat" % scalaCollectionCompatVersion
)
)
lazy val zio = project
.in(file("zio"))
.settings(
name := "testcontainers-nebula-zio",
crossScalaVersions := supportCrossVersionList,
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % logbackVersion % Test,
"io.github.jxnu-liguobin" %% "zio-nebula" % zioNebulaVersion % Provided
) ++ _zioTests.map(_ % Test),
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
Test / parallelExecution := false
)
.dependsOn(core % "compile->compile;test->test")
lazy val examples = project
.in(file("examples"))
.settings(
publish / skip := true,
crossScalaVersions := Nil,
scalaVersion := scala2_13Version,
libraryDependencies ++= Seq(
// java 11
// ch/qos/logback/classic/spi/LogbackServiceProvider has been compiled by a more recent version of the Java Runtime (class file version 55.0)
"ch.qos.logback" % "logback-classic" % logbackVersion,
"com.vesoft" % "client" % nebulaJavaClientVersion
),
Test / parallelExecution := false
)
.dependsOn(core % "compile->compile;test->test")
lazy val root = project
.in(file("."))
.settings(
crossScalaVersions := Nil,
publish / skip := true
)
.aggregate(
core,
zio,
examples
)