-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
72 lines (66 loc) · 2.45 KB
/
build.sbt
File metadata and controls
72 lines (66 loc) · 2.45 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
64
65
66
67
68
69
70
71
72
import xerial.sbt.Sonatype.sonatypeCentralHost
import StepGeneratorPlugin.autoImport.*
inThisBuild(
List(
organization := "io.github.etacassiopeia",
homepage := Some(url("https://github.com/EtaCassiopeia/zio-bdd")),
scalaVersion := "3.3.4",
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
id = "etacassiopeia",
name = "Mohsen Zainalpour",
email = "zainalpour@gmail.com",
url = url("https://github.com/EtaCassiopeia")
)
),
sonatypeCredentialHost := sonatypeCentralHost,
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
)
)
lazy val commonDependencies = Seq(
"dev.zio" %% "zio" % "2.1.17",
"dev.zio" %% "zio-schema" % "1.6.6",
"dev.zio" %% "zio-schema-derivation" % "1.6.6",
"dev.zio" %% "zio-logging" % "2.5.0",
"dev.zio" %% "zio-test" % "2.1.17",
"dev.zio" %% "zio-test-sbt" % "2.1.17" % Test
)
lazy val root = (project in file("."))
.aggregate(core, gherkin)
.settings(
name := "zio-bdd-root",
description := "A ZIO-based BDD testing framework for Scala 3",
publish / skip := true
)
.dependsOn(core, gherkin)
lazy val core = (project in file("core"))
.dependsOn(gherkin)
.settings(
name := "zio-bdd",
libraryDependencies ++= commonDependencies,
libraryDependencies ++= Seq(
"org.scala-sbt" % "test-interface" % "1.0" % "provided",
"org.scala-lang.modules" %% "scala-xml" % "2.3.0",
"dev.zio" %% "zio-streams" % "2.1.17",
"dev.zio" %% "izumi-reflect" % "3.0.2"
),
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
stepMethodGeneratorSettings
)
lazy val gherkin = (project in file("gherkin"))
.settings(
name := "zio-bdd-gherkin",
libraryDependencies ++= commonDependencies ++ Seq(
"com.lihaoyi" %% "fastparse" % "3.1.1"
)
)
lazy val example = (project in file("example"))
.dependsOn(core)
.settings(
name := "zio-bdd-example",
libraryDependencies ++= commonDependencies,
Test / testFrameworks := Seq(new TestFramework("zio.bdd.ZIOBDDFramework")),
Test / resourceDirectory := baseDirectory.value / "src" / "test" / "resources" / "features",
publish / skip := true
)