-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sbt
98 lines (91 loc) · 2.18 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
92
93
94
95
96
97
98
import Build._
inThisBuild(
Seq(
scalaVersion := V.scala212,
organization := "com.worksap",
organizationName := "Works Applications",
startYear := Some(2023),
homepage := Some(url("https://github.com/WorksApplications/uzushio")),
versionScheme := Some("early-semver"),
developers := List(
Developer(
"eiennohito",
"Arseny Tolmachev",
url("https://github.com/eiennohito")
)
)
)
)
lazy val commonSettings = Seq(
crossScalaVersions := Seq(V.scala212),
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-unchecked",
"-encoding",
"utf-8"
),
javacOptions ++= Seq(
"-encoding",
"utf8",
"-Xlint:all",
"-source",
"1.8",
"-target",
"1.8"
)
)
disablePlugins(sbtassembly.AssemblyPlugin)
lazy val root = (project in file("."))
.aggregate(
lib,
core,
legacy
)
.settings(
name := "uzushio-root"
)
.settings(noPublishSettings)
.settings(commonSettings)
lazy val legacy = (project in file("legacy"))
.disablePlugins(sbtassembly.AssemblyPlugin)
.dependsOn(lib)
.settings(
libraryDependencies ++= sparkDependencies.map(_ % Provided)
)
lazy val core = (project in file("core"))
.enablePlugins(sbtassembly.AssemblyPlugin)
.settings(
name := "uzushio",
libraryDependencies ++= sparkDependencies.map(
_ % Provided
)
)
.settings(commonSettings)
.settings(lintSettings)
.settings(assemblySettings)
.dependsOn(lib)
lazy val lib = (project in file("lib"))
.disablePlugins(sbtassembly.AssemblyPlugin)
.settings(
name := "uzushio-lib",
libraryDependencies ++= sparkDependencies.map(_ % Optional),
libraryDependencies ++= libdependencies,
scalacOptions ++= (
if (scalaVersion.value.startsWith("2.")) {
Seq("-opt:l:inline", "-opt-inline-from:classpath")
} else {
Seq.empty
}
),
)
.settings(commonSettings)
.settings(lintSettings)
.settings(scalaCompatSettings)
lazy val bench = (project in file("bench"))
.disablePlugins(sbtassembly.AssemblyPlugin)
.enablePlugins(JmhPlugin)
.settings(commonSettings)
.settings(noPublishSettings)
.dependsOn(lib)