-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
652 lines (601 loc) · 22.3 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
name := "wust"
// docker versions do not allow '+'
version in ThisBuild ~= (_.replace('+', '-'))
dynver in ThisBuild ~= (_.replace('+', '-')) // TODO: https://github.com/dwijnand/sbt-dynver/issues/5
import Def.{setting => dep}
// -- common setting --
scalaVersion in ThisBuild := "2.12.14"
Global / onChangedBuildSource := IgnoreSourceChanges // disabled, since it doesn't recover state of devserver
lazy val commonSettings = Seq(
resolvers ++=
("Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots") ::
Resolver.jcenterRepo ::
("jitpack" at "https://jitpack.io") ::
Resolver.sonatypeRepo("releases") ::
Nil,
addCompilerPlugin("org.typelevel" % "kind-projector" % "0.13.0" cross CrossVersion.full),
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1"),
libraryDependencies ++=
Deps.scribe.core.value ::
/* Deps.scribe.perfolation.value :: */
Deps.sourcecode.value ::
Deps.scalatest.value % Test ::
Deps.mockito.value % Test ::
Deps.scalatestFreespec.value % Test ::
Deps.scalatestMustmatchers.value % Test ::
Deps.scalatestMockito.value % Test ::
Nil,
dependencyOverrides ++= List(
Deps.circe.core.value,
Deps.circe.parser.value,
Deps.circe.generic.value,
Deps.circe.genericExtras.value,
Deps.cats.core.value,
Deps.akka.httpCore.value,
/* Deps.scribe.perfolation.value, */
),
// we need this merge strategy, since we want to override the original perfolation dependency of scribe with a jitpack version. But since the have different artifact and group ids, assembly gets confused, because they contain the same classes. For the JVM code it stayed exactly the same, so we can just use MergeStrategy.first.
// https://github.com/sbt/sbt-assembly#merge-strategy
assemblyMergeStrategy in assembly := {
case PathList("perfolation", xs @ _*) => MergeStrategy.first
case PathList("META-INF", "MANIFEST.MF") => MergeStrategy.discard // https://github.com/sbt/sbt-assembly/issues/80#issuecomment-27927098
case x =>
/* val oldStrategy = (assemblyMergeStrategy in assembly).value */
/* oldStrategy(x) */
MergeStrategy.first
},
// do not run tests in assembly command
test in assembly := {},
// https://github.com/sbt/sbt-assembly#caching
// assemblyOption in assembly := (assemblyOption in assembly).value.copy(cacheUnzip = false),
assemblyOption in assembly := (assemblyOption in assembly).value.copy(cacheOutput = false), // disable cache output for hopefully faster build
// watch managed library dependencies
watchSources ++= (managedClasspath in Compile).map(_.files).value,
scalacOptions ++=
// https://www.threatstack.com/blog/useful-scalac-options-for-better-scala-development-part-1/
// https://tpolecat.github.io/2017/04/25/scalac-flags.html
"-encoding" :: "UTF-8" ::
// "-Ymacro-debug-lite" :: "-Yshow-trees-compact" :: "-Yshow-trees-stringified" :: // to debug macros, use: sbt compile > macros-expanded
"-unchecked" :: // Enable additional warnings where generated code depends on assumptions
"-deprecation" ::
"-explaintypes" :: // Explain type errors in more detail
"-feature" ::
"-language:_" ::
"-Xfuture" ::
// "-opt-warnings:at-inline-failed" ::
"-Xlint:_" ::
"-Ywarn-unused:-imports" ::
// "-Ywarn-self-implicit" ::
// "-Ywarn-dead-code" :: // does not work well with scalajs js.native in facades
"-Ywarn-extra-implicit" ::
"-Ypatmat-exhaust-depth" :: "off" :: // needed for huge match in FeatureDetails
Nil,
scalacOptions ++= {
if (isDevRun.?.value.getOrElse(false))
"-Xcheckinit" ::
Nil
else
// remove assertions from code in production
"-Xdisable-assertions" ::
// enable inlining (https://www.lightbend.com/blog/scala-inliner-optimizer)
"-opt:l:method" ::
"-opt:l:inline" ::
"-opt-inline-from:**" ::
Nil
},
// Acyclic: https://github.com/lihaoyi/acyclic
libraryDependencies += Deps.acyclic.value,
autoCompilerPlugins := true,
addCompilerPlugin(Deps.acyclicDef),
// scalacOptions += "-P:acyclic:force", // enforce acyclicity across all files
// scalaxy disabled, since it produces a bug since commit 199ae8ce747e0
// Scalaxy/Streams makes your Scala collections code faster
// Fuses collection streams down to while loops
// Only use it in production
// scalacOptions += {if (isDevRun.?.value.getOrElse(false)) "-Xplugin-disable:scalaxy-streams" else "-Xplugin-require:scalaxy-streams"},
// scalacOptions in Test ~= (_ filterNot (_ == "-Xplugin-require:scalaxy-streams")),
// scalacOptions in Test += "-Xplugin-disable:scalaxy-streams",
// addCompilerPlugin("com.github.fdietze" % "scalaxy-streams" % "2.12-819f13722a-1"), //TODO: https://github.com/nativelibs4java/scalaxy-streams/pull/13
)
lazy val commonWebSettings = Seq(
useYarn := true, // makes scalajs-bundler use yarn instead of npm
yarnExtraArgs in Compile := Seq(
"--ignore-engines", // ignoring, since javascript people seem to be too stupid to compare node versions. When version 9 is available and >= 8 is required, it fails. Affected: @gfx/node-zopfli
s"--cache-folder ${(baseDirectory in ThisBuild).value}/.yarn-offline-cache", "--prefer-offline", // make yarn-offline-cache survive webApp/clean
),
scalacOptions ++= {
if (isDevRun.?.value.getOrElse(false)) {
// To enable dev source map support,
// The whole project root folder is served via webpack devserver.
val local = s"${(baseDirectory in ThisBuild).value.toURI}"
val remote = s"/"
Some(s"-P:scalajs:mapSourceURI:$local->$remote")
} else {
// enable production source-map support and link to correct commit hash on github:
git.gitHeadCommit.value.map { headCommit =>
val local = (baseDirectory in ThisBuild).value.toURI
val remote = s"https://raw.githubusercontent.com/woost/wust2/${headCommit}/"
s"-P:scalajs:mapSourceURI:$local->$remote"
}
}
},
scalaJSLinkerConfig ~= (_.withModuleKind(ModuleKind.CommonJSModule)),
scalaJSLinkerConfig ~= { _.withESFeatures(_.withUseECMAScript2015(false)) }
)
val withSourceMaps: Boolean = sys.env.get("SOURCEMAPS").fold(false)(_ == "true")
lazy val isDevRun = TaskKey[Boolean]("isDevRun", "is full opt") //TODO derive from scalaJSStage value
lazy val copyFastOptJS = TaskKey[Unit]("copyFastOptJS", "Copy javascript files to target directory")
lazy val webSettings = Seq(
requireJsDomEnv in Test := true,
version in installJsdom := "12.2.0",
scalaJSUseMainModuleInitializer := true,
scalaJSStage in Test := FastOptStage,
scalaJSLinkerConfig in (Compile, fastOptJS) ~= { _.withSourceMap(withSourceMaps) },
scalaJSLinkerConfig in (Compile, fullOptJS) ~= { _.withSourceMap(withSourceMaps) },
npmDevDependencies in Compile ++= Deps.npm.webpackDependencies,
version in webpack := Deps.webpackVersion,
version in startWebpackDevServer := Deps.webpackDevServerVersion,
webpackResources := (baseDirectory.value / "webpack" ** "*.*"),
webpackConfigFile in fullOptJS := Some(baseDirectory.value / "webpack" / "webpack.config.prod.js"),
webpackConfigFile in fastOptJS := Some(baseDirectory.value / "webpack" / "webpack.config.dev.js"),
webpackBundlingMode in fastOptJS := BundlingMode.LibraryOnly(), // https://scalacenter.github.io/scalajs-bundler/cookbook.html#performance
webpackDevServerExtraArgs := Seq("--progress", "--color", "--public"),
// when running the "dev" alias, after every fastOptJS compile all artifacts are copied into
// a folder which is served and watched by the webpack devserver.
// this is a workaround for: https://github.com/scalacenter/scalajs-bundler/issues/180
copyFastOptJS := {
val inDir = (crossTarget in (Compile, fastOptJS)).value
val outDir = (crossTarget in (Compile, fastOptJS)).value / "dev"
val outputFiles = Seq(
name.value.toLowerCase + "-fastopt-loader.js",
name.value.toLowerCase + "-fastopt.js"
)
val sourceMapFiles =
if (withSourceMaps) Seq(name.value.toLowerCase + "-fastopt.js.map") else Seq.empty
val files = (outputFiles ++ sourceMapFiles) map { p =>
(inDir / p, outDir / p)
}
IO.copy(files, overwrite = true, preserveLastModified = true, preserveExecutable = true)
}
)
lazy val root = project
.in(file("."))
.aggregate(
apiJS,
apiJVM,
database,
core,
sdkJS,
sdkJVM,
webApp,
webUtil,
webUtilMacro,
idsJS,
idsJVM,
graphJS,
graphJVM,
cssJS,
cssJVM,
utilJS,
utilJVM,
systemTest,
dbMigration
)
.settings(
publish := {},
publishLocal := {},
addCommandAlias(
"wc",
"; webApp/clean; webUtil/clean; webUtilMacro/clean; cssJS/clean; idsJS/clean; sdkJS/clean"
),
addCommandAlias(
"devslack",
"; set every isDevRun := true; core/compile; webApp/compile; slackApp/compile; webApp/fastOptJS::startWebpackDevServer; devslackwatch_; webApp/fastOptJS::stopWebpackDevServer; slackApp/reStop; core/reStop"
),
addCommandAlias(
"dev",
"; set every isDevRun := true; all core/compile webApp/fastOptJS::webpack; webApp/fastOptJS::startWebpackDevServer; devwebwatch_; all webApp/fastOptJS::stopWebpackDevServer core/reStop"
),
addCommandAlias(
"prodlocal",
"; all core/compile webApp/fullOptJS::webpack; webApp/fullOptJS::startWebpackDevServer; prodwebwatch_; all webApp/fullOptJS::stopWebpackDevServer core/reStop"
),
addCommandAlias(
"devslackwatch_",
"~; slackApp/reStop; core/reStop; webApp/fastOptJS; webApp/copyFastOptJS; core/reStart; slackApp/reStart"
),
addCommandAlias(
"devwebwatch_",
"~; core/reStop; webApp/fastOptJS; webApp/copyFastOptJS; core/reStart"
),
addCommandAlias(
"prodwebwatch_",
"~; core/reStop; webApp/fullOptJS::webpack; core/reStart"
),
addCommandAlias(
"devf",
"; set every isDevRun := true; core/reStart; project webApp; fastOptJS::startWebpackDevServer; devwatchandcopy; all fastOptJS::stopWebpackDevServer core/reStop; project root"
),
addCommandAlias(
// same as devf, but with ~compile before doing anything
"ccdev",
"; set every isDevRun := true; ~compile; all core/compile webApp/fastOptJS::webpack; webApp/fastOptJS::startWebpackDevServer; devwebwatch_; all webApp/fastOptJS::stopWebpackDevServer core/reStop"
),
addCommandAlias(
// same as dev, but with ~compile before doing anything
"ccdevf",
"; set every isDevRun := true; ~compile; core/reStart; project webApp; fastOptJS::startWebpackDevServer; devwatchandcopy; all fastOptJS::stopWebpackDevServer core/reStop; project root"
),
addCommandAlias("devwatchandcopy", "~; fastOptJS; copyFastOptJS"),
addCommandAlias(
"testJS",
"; utilJS/test; graphJS/test; sdkJS/test; apiJS/test; webApp/test"
),
addCommandAlias(
"testJSNonPure",
"; sdkJS/test; webApp/test"
),
addCommandAlias(
"testJSOpt",
"; set scalaJSStage in Global := FullOptStage; testJS"
),
addCommandAlias(
"testJVM",
"; utilJVM/test; graphJVM/test; sdkJVM/test; apiJVM/test; database/test; core/test"
),
// Avoid watching files in root project
// TODO: is there a simpler less error-prone way to write this?
// watchSources := Seq(apiJS, apiJVM, database, core, sdkJS, sdkJVM, graphJS, graphJVM, utilJS, utilJVM, systemTest, dbMigration, slackApp).flatMap(p => (watchSources in p).value)
watchSources := (watchSources in apiJS).value ++ (watchSources in apiJVM).value ++ (watchSources in serviceUtil).value ++ (watchSources in database).value ++ (watchSources in core).value ++ (watchSources in sdkJS).value ++ (watchSources in sdkJVM).value ++ (watchSources in idsJS).value ++ (watchSources in idsJVM).value ++ (watchSources in cssJS).value ++ (watchSources in cssJVM).value ++ (watchSources in graphJS).value ++ (watchSources in graphJVM).value ++ (watchSources in utilJS).value ++ (watchSources in utilJVM).value ++ (watchSources in systemTest).value ++ (watchSources in dbMigration).value ++ (watchSources in bench.jvm).value
)
lazy val util = crossProject(JSPlatform, JVMPlatform)
.settings(commonSettings)
.jsSettings(commonWebSettings)
.settings(
libraryDependencies ++=
Deps.cats.core.value ::
Deps.pureconfig.value ::
Deps.taggedTypes.value ::
Deps.flatland.value ::
Nil
)
lazy val utilJS = util.js
lazy val utilJVM = util.jvm
lazy val bench = crossProject(JSPlatform, JVMPlatform)
.settings(commonSettings)
.dependsOn(graph)
.settings(
// cancelable in Global := true, // ctrl+c does not quit sbt
libraryDependencies ++=
Deps.bench.value ::
Nil,
)
.jsSettings(
useYarn := true, // makes scalajs-bundler use yarn instead of npm
scalaJSStage in Compile := FullOptStage,
scalaJSUseMainModuleInitializer := true,
)
lazy val benchJS = bench.js.enablePlugins(ScalaJSBundlerPlugin)
lazy val serviceUtil = project
.settings(commonSettings)
.dependsOn(idsJVM)
.settings(
libraryDependencies ++=
Deps.monix.value ::
Deps.akka.http.value ::
Deps.akka.actor.value ::
Deps.akka.stream.value ::
Deps.circe.core.value ::
Deps.circe.parser.value ::
Deps.circe.genericExtras.value ::
Nil
)
lazy val sdk = crossProject(JSPlatform, JVMPlatform)
.dependsOn(api, util)
.settings(commonSettings)
.jsSettings(commonWebSettings)
.settings(
libraryDependencies ++=
Deps.covenant.ws.value ::
Deps.covenant.http.value ::
Deps.monix.value ::
Deps.colorado.value ::
Deps.oAuthClient.value ::
Deps.akka.testkit.value ::
Deps.akka.httpTestkit.value ::
Deps.scalarx.value ::
Nil
)
lazy val sdkJS = sdk.js
lazy val sdkJVM = sdk.jvm
//TODO: rename to atoms/basetypes/domain
lazy val ids = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.dependsOn(util)
.settings(commonSettings)
.jsSettings(commonWebSettings)
.settings(
libraryDependencies ++=
Deps.cuid.value ::
Deps.base58s.value ::
Deps.taggedTypes.value ::
Deps.circe.core.value % Optional ::
Deps.circe.genericExtras.value % Optional ::
Deps.boopickle.value % Optional ::
Nil
)
lazy val idsJS = ids.js
lazy val idsJVM = ids.jvm
lazy val graph = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.dependsOn(ids)
.settings(commonSettings)
.jsSettings(commonWebSettings)
.settings(
libraryDependencies ++=
Deps.monocleCore.value ::
Nil,
)
lazy val graphJS = graph.js
lazy val graphJVM = graph.jvm
lazy val css = crossProject(JSPlatform, JVMPlatform)
.settings(commonSettings)
.jsSettings(commonWebSettings)
.dependsOn(sdk)
.settings(
libraryDependencies ++=
Deps.scalacss.value ::
Nil
)
lazy val cssJS = css.js
lazy val cssJVM = css.jvm
lazy val api = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.dependsOn(graph)
.settings(commonSettings)
.jsSettings(commonWebSettings)
.settings(
libraryDependencies ++=
Deps.covenant.core.value ::
Deps.boopickle.value ::
Deps.circe.core.value ::
Deps.circe.parser.value ::
Deps.circe.genericExtras.value ::
Nil
)
lazy val apiJS = api.js
lazy val apiJVM = api.jvm
lazy val database = project
.dependsOn(idsJVM, utilJVM, dbUtil)
.settings(commonSettings)
.configs(IntegrationTest)
.settings(Defaults.itSettings)
.settings(
libraryDependencies ++=
Deps.circe.core.value ::
Deps.circe.parser.value ::
Deps.circe.genericExtras.value ::
Deps.quill.value ::
Deps.scalatest.value % IntegrationTest ::
Nil
// parallelExecution in IntegrationTest := false
)
lazy val dbUtil = project
.dependsOn(idsJVM, utilJVM)
.settings(commonSettings)
.settings(
libraryDependencies ++=
Deps.quill.value ::
Deps.circe.core.value ::
Deps.circe.parser.value ::
Deps.circe.genericExtras.value ::
Nil
)
lazy val cli = project
.enablePlugins(GraalVMNativeImagePlugin)
.dependsOn(apiJVM)
.settings(
// taken from: https://github.com/vmencik/akka-graal-native
graalVMNativeImageOptions ++=
"-H:ReflectionConfigurationFiles=" + baseDirectory.value / "reflectconf-akka.json" ::
"-H:IncludeResources=.*conf" ::
"--enable-url-protocols=https,http" ::
"--rerun-class-initialization-at-runtime=com.typesafe.config.impl.ConfigImpl$EnvVariablesHolder,com.typesafe.config.impl.ConfigImpl$SystemPropertiesHolder" ::
Nil,
libraryDependencies ++=
// required for substitutions: AkkaSubstitutions
Deps.substrateVM.value ::
Deps.akka.httpCirce.value ::
Deps.caseApp.value ::
Nil
)
lazy val core = project
.dependsOn(apiJVM, database, serviceUtil)
.settings(commonSettings)
.configs(IntegrationTest)
.settings(Defaults.itSettings)
.settings(
libraryDependencies ++=
Deps.covenant.ws.value ::
Deps.covenant.http.value ::
Deps.akka.httpCors.value ::
Deps.akka.httpCirce.value ::
Deps.boopickle.value ::
Deps.cats.kittens.value ::
Deps.jwt.value ::
Deps.bouncyCastle.value ::
Deps.hasher.value ::
Deps.jbcrypt.value ::
Deps.javaMail.value ::
Deps.monix.value ::
Deps.webPush.value ::
Deps.awsSdk.s3.value ::
Deps.awsSdk.ses.value ::
Deps.javaEmojis.value ::
Deps.guava.value ::
Deps.stripeJava.value ::
Nil,
javaOptions in reStart += "-Xmx300m"
)
lazy val webUtilMacro = project
.enablePlugins(ScalaJSPlugin)
.dependsOn(idsJS)
.settings(commonSettings, commonWebSettings)
.settings(
libraryDependencies ++=
Deps.scalaJsDom.value ::
Deps.scalarx.value ::
Deps.outwatch.core.value ::
Nil
)
lazy val webUtil = project
.enablePlugins(ScalaJSPlugin, ScalaJSBundlerPlugin, ScalablyTypedConverterPlugin)
.dependsOn(idsJS, webUtilMacro)
.settings(commonSettings, commonWebSettings)
.settings(
npmDependencies in Compile ++=
Deps.npm.chartJs ::
Deps.npm.chartJsTypes ::
Nil,
libraryDependencies ++=
Deps.scalaJsDom.value ::
Deps.scalacss.value ::
Deps.scalarx.value ::
Deps.outwatch.core.value ::
Deps.outwatch.util.value ::
Deps.outwatch.repairdom.value ::
Deps.colibri.monix.value ::
Deps.colibri.rx.value ::
Deps.monocle.value ::
Deps.vectory.value ::
Deps.d3v4.value ::
Deps.kantanRegex.core.value ::
Deps.kantanRegex.generic.value ::
Deps.fontawesome.value ::
Nil
)
lazy val external = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.dependsOn(graph)
.settings(
libraryDependencies ++=
Deps.circe.core.value ::
Deps.circe.parser.value ::
Deps.circe.generic.value ::
Deps.kantanCSV.core.value ::
Deps.kantanCSV.generic.value ::
Deps.kantanRegex.core.value ::
Deps.kantanRegex.generic.value ::
Nil
)
val externalJS = external.js
val externalJVM = external.jvm
lazy val webApp = project
.enablePlugins(ScalaJSPlugin, ScalaJSBundlerPlugin)
.dependsOn(sdkJS, cssJS, webUtil, externalJS)
.settings(commonSettings, commonWebSettings, webSettings)
.settings(
// scalacOptions += "-P:acyclic:force", // enforce acyclicity across all files
libraryDependencies ++=
Nil,
npmDependencies in Compile ++=
Deps.npm.defaultPassiveEvents ::
Deps.npm.intersectionObserver ::
Deps.npm.setimmediate ::
Deps.npm.marked ::
Deps.npm.dompurify ::
Deps.npm.dateFns ::
Deps.npm.draggable ::
Deps.npm.fomanticUi ::
Deps.npm.highlight ::
Deps.npm.emoji ::
Deps.npm.emojiDatasource ::
Deps.npm.emojiDatasourceTwitter ::
Deps.npm.hammerjs ::
Deps.npm.propagatingHammerjs ::
Deps.npm.mobileDetect ::
Deps.npm.jsSha256 ::
Deps.npm.clipboardjs ::
Deps.npm.jqueryTablesort ::
Deps.npm.juration ::
Deps.npm.wdtEmojiBundle ::
Deps.npm.tribute ::
Deps.npm.chartJs ::
Deps.npm.hopscotch ::
Deps.npm.canvasImageUploader ::
Deps.npm.exifJS ::
Deps.npm.flatpickr ::
Deps.npm.tippy ::
Nil,
/* wartremoverWarnings ++= Warts.allBut( */
/* // enable soon (one by one) */
/* Wart.ExplicitImplicitTypes, */
/* Wart.TraversableOps, */
/* Wart.ToString, */
/* Wart.StringPlusAny, */
/* Wart.ArrayEquals, */
/* Wart.Equals, */
/* Wart.OptionPartial, */
/* Wart.Any, */
/* Wart.Product, Wart.Serializable, */
/* Wart.Nothing, */
/* Wart.AsInstanceOf, */
/* Wart.IsInstanceOf, */
/* Wart.Return, */
/* Wart.PublicInference, */
/* // Don't know */
/* Wart.Option2Iterable, */
/* // Nope */
/* Wart.Var, Wart.While, Wart.Overloading, Wart.Null, */
/* Wart.MutableDataStructures, Wart.DefaultArguments, */
/* Wart.Recursion, Wart.NonUnitStatements, Wart.ImplicitParameter, */
/* ), */
)
lazy val slackApp = project
.dependsOn(sdkJVM, dbUtil, serviceUtil)
.settings(commonSettings)
.settings(
libraryDependencies ++=
Deps.akka.httpCors.value ::
Deps.akka.httpCirce.value ::
Deps.akka.httpPlay.value ::
Deps.slackClient.value ::
Deps.quill.value ::
Nil
)
lazy val gitterApp = project
.dependsOn(sdkJVM, serviceUtil)
.settings(commonSettings)
.settings(
libraryDependencies ++=
Deps.gitterClient.value ::
Deps.gitterSync.value ::
Nil
)
lazy val githubApp = project
.dependsOn(sdkJVM, serviceUtil)
.settings(commonSettings)
.settings(
libraryDependencies ++=
Deps.akka.httpCors.value ::
Deps.akka.httpCirce.value ::
Deps.redis.value ::
Deps.github4s.value ::
Deps.graphQl.value ::
Nil
)
lazy val systemTest = project
.configs(IntegrationTest)
.settings(Defaults.itSettings)
.settings(commonSettings)
.settings(
libraryDependencies ++=
Deps.akka.http.value % IntegrationTest ::
Deps.akka.actor.value % IntegrationTest ::
Deps.akka.stream.value % IntegrationTest ::
Deps.specs2.value % IntegrationTest ::
Deps.selenium.value % IntegrationTest ::
Nil,
scalacOptions in Test ++= Seq("-Yrangepos") // specs2
)
lazy val dbMigration = project