-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
80 lines (60 loc) · 2.41 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
import app.softnetwork.*
/////////////////////////////////
// Defaults
/////////////////////////////////
ThisBuild / organization := "app.softnetwork"
name := "elastic"
ThisBuild / version := "6.7-SNAPSHOT"
ThisBuild / scalaVersion := "2.12.18"
ThisBuild / scalacOptions ++= Seq("-deprecation", "-feature", "-target:jvm-1.8", "-Ypartial-unification")
ThisBuild / javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
ThisBuild / resolvers ++= Seq(
"Softnetwork Server" at "https://softnetwork.jfrog.io/artifactory/releases/",
"Maven Central Server" at "https://repo1.maven.org/maven2",
"Typesafe Server" at "https://repo.typesafe.com/typesafe/releases"
)
val logging = Seq(
"com.typesafe.scala-logging" %% "scala-logging" % Versions.scalaLogging,
"org.log4s" %% "log4s" % Versions.log4s,
"org.slf4j" % "slf4j-api" % Versions.slf4j,
"org.slf4j" % "jcl-over-slf4j" % Versions.slf4j,
"org.slf4j" % "jul-to-slf4j" % Versions.slf4j
)
val jacksonExclusions = Seq(
ExclusionRule(organization = "com.fasterxml.jackson.core"),
ExclusionRule(organization = "org.codehaus.jackson")
)
val json4s = Seq(
"org.json4s" %% "json4s-jackson" % Versions.json4s,
"org.json4s" %% "json4s-ext" % Versions.json4s
).map(_.excludeAll(jacksonExclusions: _*))
ThisBuild / libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.1"
)// ++ configDependencies ++ json4s ++ logging
ThisBuild / libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always
Test / parallelExecution := false
lazy val sql = project.in(file("sql"))
.configs(IntegrationTest)
.settings(Defaults.itSettings)
lazy val client = project.in(file("client"))
.configs(IntegrationTest)
.settings(Defaults.itSettings)
.dependsOn(
sql % "compile->compile;test->test;it->it"
)
lazy val persistence = project.in(file("persistence"))
.configs(IntegrationTest)
.settings(Defaults.itSettings)
.dependsOn(
client % "compile->compile;test->test;it->it"
)
lazy val testKit = project.in(file("testkit"))
.configs(IntegrationTest)
.settings(Defaults.itSettings)
.dependsOn(
persistence % "compile->compile;test->test;it->it"
)
lazy val root = project.in(file("."))
.configs(IntegrationTest)
.settings(Defaults.itSettings, Publish.noPublishSettings)
.aggregate(sql, client, persistence, testKit)