-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
38 lines (31 loc) · 1.61 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
import BuildHelper.stdSettings
ThisBuild / scalaVersion := BuildHelper.scala3
ThisBuild / organization := "io.gitlab.routis.dmmf"
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
lazy val orderTaking = (project in file("."))
.aggregate(orderTakingDomain, orderTakingInfrastructure)
.settings(stdSettings("dmmf"))
.settings(publishArtifact := false, publish / skip := true, publishLocal / skip := true)
lazy val orderTakingDomain = module("order-taking-domain", "orderTaking/domain/")
.settings(libraryDependencies ++= Dependencies.coreDeps, testFrameworks += Dependencies.coreTestingFramework)
lazy val orderTakingInfrastructure =
module("order-taking-infrastructure", "orderTaking/infrastructure")
.aggregate(orderTakingInfrastructureDB)
.settings(publishArtifact := false, publish / skip := true, publishLocal / skip := true)
lazy val orderTakingInfrastructureDB =
module("order-taking-infrastructure-db", "orderTaking/infrastructure/db")
.dependsOn(`orderTakingDomain` % "compile->compile;test->test")
.settings(
scalacOptions -= "-Yexplicit-nulls",
libraryDependencies ++= Dependencies.dbDeps,
excludeDependencies ++= Seq(
ExclusionRule("org.scala-lang.modules", "scala-collection-compat_2.13"),
ExclusionRule("com.lihaoyi", "sourcecode_2.13"),
ExclusionRule("com.lihaoyi", "fansi_2.13"),
ExclusionRule("com.lihaoyi", "pprint_2.13")
),
testFrameworks += Dependencies.dbTestingFramework
)
def module(moduleName: String, fileName: String): Project =
Project(moduleName, file(fileName))
.settings(stdSettings(moduleName))