-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
107 lines (96 loc) · 3.11 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
99
100
101
102
103
104
105
106
107
val _scalaVersions: Seq[String] = Seq("3.3.5")
ThisBuild / organization := "io.github.dieproht"
ThisBuild / homepage := Some(url("https://github.com/dieproht/matr"))
ThisBuild / scalaVersion := _scalaVersions.last
ThisBuild / licenses +=
("Apache-2.0", url("http://opensource.org/licenses/Apache-2.0"))
ThisBuild / developers :=
List(
Developer(
"dieproht",
"Karl F Walkow",
"opensource@walkow.de",
url("https://github.com/dieproht")
)
)
ThisBuild / semanticdbEnabled := true
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.6.0"
sonatypeCredentialHost := "s01.oss.sonatype.org"
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
def commonSettings = Seq(
sonatypeCredentialHost := "s01.oss.sonatype.org",
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
scalacOptions ++=
Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-explain",
"-explain-types",
"-feature",
"-new-syntax",
"-unchecked"
)
)
def strictCommonSettings = commonSettings ++ Seq(scalacOptions ++= Seq("-source", "future"))
lazy val matr_api = crossProject(JVMPlatform)
.crossType(CrossType.Full)
.withoutSuffixFor(JVMPlatform)
.in(file("matr-api"))
.settings(strictCommonSettings: _*)
.settings(name := "matr-api")
lazy val matr_dflt_data = crossProject(JVMPlatform)
.crossType(CrossType.Full)
.withoutSuffixFor(JVMPlatform)
.in(file("matr-dflt-data"))
.settings(strictCommonSettings: _*)
.settings(name := "matr-dflt-data")
.dependsOn(matr_api)
lazy val matr_dflt_ops = crossProject(JVMPlatform)
.crossType(CrossType.Full)
.withoutSuffixFor(JVMPlatform)
.in(file("matr-dflt-ops"))
.settings(strictCommonSettings: _*)
.settings(name := "matr-dflt-ops")
.dependsOn(matr_api)
lazy val matr_std = crossProject(JVMPlatform)
.crossType(CrossType.Full)
.withoutSuffixFor(JVMPlatform)
.in(file("matr-std"))
.settings(strictCommonSettings: _*)
.settings(name := "matr-std")
.dependsOn(matr_api)
lazy val matr_bundle = crossProject(JVMPlatform)
.crossType(CrossType.Full)
.withoutSuffixFor(JVMPlatform)
.in(file("matr-bundle"))
.settings(strictCommonSettings: _*)
.settings(name := "matr-bundle")
.dependsOn(matr_dflt_data, matr_dflt_ops, matr_std)
lazy val matr_tests = crossProject(JVMPlatform)
.crossType(CrossType.Full)
.withoutSuffixFor(JVMPlatform)
.in(file("matr-tests"))
.settings(commonSettings: _*)
.settings(
name := "matr-tests",
libraryDependencies ++=
Seq(
"org.typelevel" %% "spire" % "0.18.0" % Test,
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
"org.scalatestplus" %% "scalacheck-1-16" % "3.2.14.0" % Test
),
publish / skip := true
)
.dependsOn(matr_bundle)
lazy val matrJVM = project
.in(file("."))
.settings(publish / skip := true)
.aggregate(
matr_api.jvm,
matr_dflt_data.jvm,
matr_dflt_ops.jvm,
matr_std.jvm,
matr_bundle.jvm,
matr_tests.jvm
)