This repository has been archived by the owner on Apr 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
124 lines (119 loc) · 4.32 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
inThisBuild(
Seq(
organization := "org.broadinstitute",
scalaVersion := "2.12.8",
scalafmtConfig := Some((baseDirectory in ThisBuild)(_ / ".scalafmt.conf").value),
scalafmtOnCompile := true,
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-explaintypes",
"-feature",
"-target:jvm-1.8",
"-unchecked",
"-Xcheckinit",
"-Xfatal-warnings",
"-Xfuture",
"-Xlint",
"-Xmax-classfile-name",
"200",
"-Yno-adapted-args",
"-Ypartial-unification",
"-Ywarn-dead-code",
"-Ywarn-extra-implicit",
"-Ywarn-inaccessible",
"-Ywarn-infer-any",
"-Ywarn-nullary-override",
"-Ywarn-nullary-unit",
"-Ywarn-numeric-widen",
"-Ywarn-unused",
"-Ywarn-value-discard"
)
)
)
val betterFilesVersion = "3.7.0"
val betterMonadicForVersion = "0.2.4"
val caseAppVersion = "2.0.0-M5"
val catsVersion = "1.5.0"
val catsEffectVersion = "1.2.0"
val circeVersion = "0.11.1"
val circeDerivationVersion = "0.11.0-M1"
val circeFs2Version = "0.11.0"
val cloudStorageVersion = "1.61.0"
val doobieVersion = "0.7.0-M2"
val enumeratumVersion = "1.5.13"
val fs2Version = "1.0.4"
val http4sVersion = "0.20.0-M7"
val logbackVersion = "1.2.3"
val paradiseVersion = "2.1.1"
val postgresSocketFactoryVersion = "1.0.12"
val pureConfigVersion = "0.10.1"
val commonSettings = Seq(
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % betterMonadicForVersion),
addCompilerPlugin("org.scalamacros" % "paradise" % paradiseVersion cross CrossVersion.full),
scalacOptions in (Compile, console) --= Seq(
"-Xfatal-warnings",
"-Xlint",
"-Ywarn-unused"
)
)
lazy val `gdr-ingest` = project
.in(file("."))
.aggregate(`encode-ingest`, `encode-explorer`)
lazy val `encode-ingest` = project
.in(file("encode/ingest"))
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % logbackVersion,
"co.fs2" %% "fs2-io" % fs2Version,
"com.github.alexarchambault" %% "case-app" % caseAppVersion,
"com.github.pathikrit" %% "better-files" % betterFilesVersion,
"com.google.cloud" % "google-cloud-storage" % cloudStorageVersion,
"io.circe" %% "circe-derivation" % circeDerivationVersion,
"io.circe" %% "circe-fs2" % circeFs2Version,
"io.circe" %% "circe-literal" % circeVersion,
"org.http4s" %% "http4s-blaze-client" % http4sVersion,
"org.http4s" %% "http4s-circe" % http4sVersion
),
dependencyOverrides ++= Seq(
"co.fs2" %% "fs2-core" % fs2Version,
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "cats-effect" % catsEffectVersion
)
)
lazy val `encode-explorer` = project
.in(file("encode/explorer"))
.enablePlugins(JavaAppPackaging, DockerPlugin)
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % logbackVersion,
"com.beachape" %% "enumeratum" % enumeratumVersion,
"com.github.pureconfig" %% "pureconfig" % pureConfigVersion,
"com.github.pureconfig" %% "pureconfig-cats-effect" % pureConfigVersion,
"com.github.pureconfig" %% "pureconfig-enumeratum" % pureConfigVersion,
"com.github.pureconfig" %% "pureconfig-http4s" % pureConfigVersion,
"com.google.cloud.sql" % "postgres-socket-factory" % postgresSocketFactoryVersion % Runtime,
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-derivation" % circeDerivationVersion,
"org.http4s" %% "http4s-blaze-server" % http4sVersion,
"org.http4s" %% "http4s-circe" % http4sVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.tpolecat" %% "doobie-core" % doobieVersion,
"org.tpolecat" %% "doobie-hikari" % doobieVersion,
"org.tpolecat" %% "doobie-postgres" % doobieVersion,
"org.tpolecat" %% "doobie-postgres-circe" % doobieVersion
),
dependencyOverrides ++= Seq(
"co.fs2" %% "fs2-core" % fs2Version,
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "cats-effect" % catsEffectVersion
),
dockerBaseImage := "gcr.io/google_appengine/openjdk8"
)