-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
74 lines (64 loc) · 2.14 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
import CompileFlags._
lazy val scala212 = "2.12.18"
lazy val scala213 = "2.13.12"
lazy val supportedScalaVersions = List(scala213, scala212)
ThisBuild / organization := "com.colisweb"
ThisBuild / scalaVersion := scala213
ThisBuild / scalafmtOnCompile := true
ThisBuild / scalafmtCheck := true
ThisBuild / scalafmtSbtCheck := true
ThisBuild / Test / fork := true
ThisBuild / crossScalaVersions := supportedScalaVersions
ThisBuild / scalacOptions ++= crossScalacOptions(scalaVersion.value)
Global / onChangedBuildSource := ReloadOnSourceChanges
ThisBuild / pushRemoteCacheTo := Some(
MavenCache("local-cache", baseDirectory.value / sys.env.getOrElse("CACHE_PATH", "sbt-cache"))
)
//// Main projects
lazy val root = Project(id = "google-drive-scala", base = file("."))
.settings(noPublishSettings: _*)
.aggregate(core, cats_wrapper, zio_wrapper)
lazy val core = Project(id = "google-drive-scala-client", base = file("core"))
.settings(
libraryDependencies ++= Seq(
Dependencies.circe,
Dependencies.circeParser,
Dependencies.circeGenericExtras,
Dependencies.scalaCompat,
Dependencies.scalaReflect,
Dependencies.googleClient,
Dependencies.googleAuth,
Dependencies.googleCredentials,
Dependencies.googleSheets,
Dependencies.googleDrive,
Dependencies.googleBigQuery
),
libraryDependencies ++= Seq(
TestDependencies.scalaTest,
TestDependencies.approvals
)
)
.settings(
unusedCompileDependenciesFilter -= moduleFilter("org.scala-lang.modules", "scala-collection-compat")
)
lazy val cats_wrapper = Project(id = "google-drive-scala-client-cats", base = file("cats_wrapper"))
.settings(
libraryDependencies ++= Seq(
Dependencies.catsEffect,
Dependencies.catsRetry
)
)
.dependsOn(core)
lazy val zio_wrapper = Project(id = "google-drive-scala-client-zio", base = file("zio_wrapper"))
.settings(
libraryDependencies ++= Seq(
Dependencies.zio
)
)
.dependsOn(core)
def noPublishSettings =
Seq(
publish := {},
publishLocal := {},
publishArtifact := false
)