-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
55 lines (47 loc) · 1.4 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
import Dependencies._
lazy val publishSettings = Publish.settings("fstore4s")
lazy val versionTag = "0.2.0" + "-" + "SNAPSHOT"
lazy val root = project
.in(file("."))
.aggregate(
fstore,
fstoreS3,
fstoreGCS,
fstoreLocal
)
.settings(
Common.settings,
publishSettings,
name := "fstore4s",
version := versionTag,
skip in publish := true,
crossScalaVersions := Nil
)
lazy val fstore = sbt.Project
.apply("fstore4s-core", file("fstore4s-core"))
.settings(
Common.settings,
publishSettings,
name := "fstore4s-core",
version := versionTag,
libraryDependencies ++= Seq() ++ fs2 ++ scalatest ++ mockito ++ cats
)
lazy val fstoreS3 = module("fstore4s-s3")
.dependsOn(fstore % "compile->compile;test->test")
.settings(publishSettings, libraryDependencies ++= Seq(awsS3))
lazy val fstoreGCS = module("fstore4s-gcs")
.dependsOn(fstore % "compile->compile;test->test")
.settings(publishSettings, libraryDependencies ++= Seq(gcStorage))
lazy val fstoreLocal = module("fstore4s-local")
.dependsOn(fstore % "compile->compile;test->test")
.settings(publishSettings, libraryDependencies ++= Seq(osLib))
def module(projectName: String): Project = {
sbt.Project
.apply(projectName, file(projectName))
.dependsOn(fstore % "compile->compile;test->test")
.settings(
Common.settings,
name := projectName,
version := versionTag
)
}