-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.sbt
637 lines (571 loc) · 21.8 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
import sbt.librarymanagement.ConflictWarning
val scala_2_13 = "2.13.15"
val scala_3 = "3.3.4"
val mainScalaVersion = scala_3
val supportedScalaVersions = Seq(scala_2_13, scala_3)
ThisBuild / crossScalaVersions := supportedScalaVersions
ThisBuild / scalaVersion := mainScalaVersion
ThisBuild / conflictWarning := ConflictWarning.disable
ThisBuild / versionScheme := Some("early-semver")
Test / scalafmtOnCompile := true
ThisBuild / scalafmtOnCompile := true
lazy val baseSettings = Seq(
organization := "pl.iterators",
organizationName := "Iterators",
organizationHomepage := Some(url("https://iterato.rs")),
homepage := Some(url("https://github.com/theiterators/kebs")),
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature", "-encoding", "utf8") ++ (if (scalaVersion.value.startsWith("3"))
Seq("-Xmax-inlines", "64", "-Yretain-trees")
else Seq.empty)
)
lazy val commonMacroSettings = baseSettings ++ Seq(
libraryDependencies ++= (if (scalaVersion.value.startsWith("3")) Nil
else
Seq(
"org.scala-lang" % "scala-compiler" % scalaVersion.value % "provided",
"org.scala-lang" % "scala-reflect" % scalaVersion.value
))
)
lazy val metaSettings = commonSettings ++ Seq(
scalacOptions ++= paradiseFlag(scalaVersion.value)
)
lazy val crossBuildSettings = Seq(crossScalaVersions := supportedScalaVersions)
lazy val publishSettings = Seq(
pomIncludeRepository := const(true),
licenses := Seq("MIT License" -> url("http://opensource.org/licenses/MIT")),
developers := List(
Developer(id = "luksow", name = "Łukasz Sowa", email = "[email protected]", url = url("https://github.com/luksow")),
Developer(
id = "pkiersznowski",
name = "Paweł Kiersznowski",
email = "[email protected]",
url = url("https://github.com/pk044")
)
),
scmInfo := Some(
ScmInfo(browseUrl = url("https://github.com/theiterators/kebs"), connection = "scm:git:https://github.com/theiterators/kebs.git")
)
) ++ crossBuildSettings
lazy val noPublishSettings =
Seq(
publishArtifact := false
)
def disableScala(v: List[String]) =
Def.settings(
libraryDependencies := {
if (v.contains(scalaBinaryVersion.value)) {
Nil
} else {
libraryDependencies.value
}
},
Seq(Compile, Test).map { x =>
(x / sources) := {
if (v.contains(scalaBinaryVersion.value)) {
Nil
} else {
(x / sources).value
}
}
},
Test / test := {
if (v.contains(scalaBinaryVersion.value)) {
()
} else {
(Test / test).value
}
},
publish / skip := (v.contains(scalaBinaryVersion.value))
)
def optional(dependency: ModuleID) = dependency % "provided"
def paradiseFlag(scalaVersion: String): Seq[String] =
if (scalaVersion == scala_3)
Seq.empty
else
Seq("-Ymacro-annotations")
val scalaTest = Def.setting("org.scalatest" %%% "scalatest" % "3.2.19")
val scalaCheck = Def.setting("org.scalacheck" %%% "scalacheck" % "1.18.1")
val slick = "com.typesafe.slick" %% "slick" % "3.5.2"
val optionalSlick = optional(slick)
val playJson = Def.setting("org.playframework" %%% "play-json" % "3.0.4")
val slickPg = "com.github.tminglei" %% "slick-pg" % "0.22.2"
val doobie = "org.tpolecat" %% "doobie-core" % "1.0.0-RC5"
val doobiePg = "org.tpolecat" %% "doobie-postgres" % "1.0.0-RC5"
val sprayJson = "io.spray" %% "spray-json" % "1.3.6"
val circeV = "0.14.10"
val circe = Def.setting("io.circe" %%% "circe-core" % circeV)
val circeAuto = Def.setting("io.circe" %%% "circe-generic" % circeV)
val circeAutoExtras = Def.setting("io.circe" %%% "circe-generic-extras" % "0.14.4")
val circeParser = Def.setting("io.circe" %%% "circe-parser" % circeV)
val jsonschema = "com.github.andyglow" %% "scala-jsonschema" % "0.7.11"
val scalacheck = "org.scalacheck" %% "scalacheck" % "1.18.1"
val scalacheckMagnolify = "com.spotify" % "magnolify-scalacheck" % "0.7.4"
val scalacheckDerived = "io.github.martinhh" %% "scalacheck-derived" % "0.4.2"
val enumeratumVersion = "1.7.5"
val enumeratumPlayJsonVersion = "1.8.1"
val enumeratum = Def.setting("com.beachape" %%% "enumeratum" % enumeratumVersion)
def enumeratumInExamples = {
val playJsonSupport = "com.beachape" %% "enumeratum-play-json" % enumeratumPlayJsonVersion
Seq("com.beachape" %% "enumeratum" % enumeratumVersion, playJsonSupport)
}
val optionalEnumeratum = Def.setting("com.beachape" %%% "enumeratum" % enumeratumVersion % "provided")
val enumeratumInTest = Def.setting("com.beachape" %%% "enumeratum" % enumeratumVersion % "test")
val akkaVersion = "2.6.20"
val akkaHttpVersion = "10.2.10"
val akkaStream = "com.typesafe.akka" %% "akka-stream" % akkaVersion
val akkaStreamTestkit = "com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion
val akkaHttp = "com.typesafe.akka" %% "akka-http" % akkaHttpVersion
val akkaHttpTestkit = "com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion
def akkaHttpInExamples = {
val akkaHttpSprayJson = "com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion
Seq(
akkaStream.cross(CrossVersion.for3Use2_13),
akkaHttp.cross(CrossVersion.for3Use2_13),
akkaHttpSprayJson.cross(CrossVersion.for3Use2_13)
)
}
val pekkoVersion = "1.1.2"
val pekkoHttpVersion = "1.1.0"
val pekkoHttpJsonV = "2.0.0"
val pekkoStream = "org.apache.pekko" %% "pekko-stream" % pekkoVersion
val pekkoStreamTestkit = "org.apache.pekko" %% "pekko-stream-testkit" % pekkoVersion
val pekkoHttp = "org.apache.pekko" %% "pekko-http" % pekkoHttpVersion
val pekkoHttpTestkit = "org.apache.pekko" %% "pekko-http-testkit" % pekkoHttpVersion
def pekkoHttpInExamples = {
val pekkoHttpSprayJson = "org.apache.pekko" %% "pekko-http-spray-json" % pekkoHttpVersion
Seq(pekkoStream, pekkoHttp, pekkoHttpSprayJson)
}
val http4sVersion = "0.23.29"
val http4s = Def.setting("org.http4s" %%% "http4s-dsl" % http4sVersion)
val http4sStirVersion = "0.4.0"
val http4sStir = Def.setting("pl.iterators" %%% "http4s-stir" % http4sStirVersion)
val http4sStirTestkit = Def.setting("pl.iterators" %%% "http4s-stir-testkit" % http4sStirVersion)
val pureConfigVersion = "0.17.7"
val pureConfig = "com.github.pureconfig" %% "pureconfig-core" % pureConfigVersion
val pureConfigGeneric = "com.github.pureconfig" %% "pureconfig-generic" % pureConfigVersion
val pureConfigGenericScala3 = "com.github.pureconfig" %% "pureconfig-generic-scala3" % pureConfigVersion
val scalaJavaTime = Def.setting("io.github.cquiroz" %%% "scala-java-time" % "2.6.0")
lazy val commonSettings = baseSettings ++ Seq(
scalacOptions ++=
(if (scalaVersion.value.startsWith("3"))
Seq("-language:implicitConversions", "-Ykind-projector", "-Xignore-scala2-macros")
else Seq("-language:implicitConversions", "-language:experimental.macros")),
// (scalacOptions in Test) ++= Seq("-Ymacro-debug-lite" /*, "-Xlog-implicits"*/ ),
libraryDependencies += scalaTest.value % "test"
)
lazy val slickSettings = commonSettings ++ Seq(
libraryDependencies += slick,
libraryDependencies += (slickPg % "test"),
libraryDependencies += (enumeratumInTest.value)
)
lazy val doobieSettings = commonSettings ++ Seq(
libraryDependencies += doobie,
libraryDependencies += (doobiePg % "test"),
libraryDependencies += (enumeratumInTest.value)
)
lazy val coreSettings = commonMacroSettings ++ Seq(
libraryDependencies += (scalaCheck.value % "test")
)
lazy val enumSettings = commonMacroSettings ++ Seq(
libraryDependencies += scalaCheck.value % "test",
libraryDependencies += scalaTest.value % "test",
scalacOptions ++= paradiseFlag(scalaVersion.value)
)
lazy val enumeratumSettings = commonMacroSettings ++ Seq(
libraryDependencies += scalaCheck.value % "test",
libraryDependencies += scalaTest.value % "test",
libraryDependencies += optionalEnumeratum.value,
scalacOptions ++= paradiseFlag(scalaVersion.value)
)
lazy val sprayJsonSettings = commonSettings ++ Seq(
libraryDependencies += sprayJson,
libraryDependencies += optionalEnumeratum.value
)
lazy val playJsonSettings = commonSettings ++ Seq(
libraryDependencies += playJson.value,
libraryDependencies += (enumeratumInTest.value)
)
lazy val circeSettings = commonSettings ++ Seq(
libraryDependencies += circe.value,
libraryDependencies += circeAuto.value,
libraryDependencies += optionalEnumeratum.value,
libraryDependencies += (circeParser.value % "test")
) ++ Seq(
libraryDependencies ++= (if (scalaVersion.value.startsWith("3")) Nil
else Seq(circeAutoExtras.value))
)
lazy val akkaHttpSettings = commonSettings ++ Seq(
libraryDependencies += (akkaHttp).cross(CrossVersion.for3Use2_13),
libraryDependencies += (akkaStreamTestkit % "test").cross(CrossVersion.for3Use2_13),
libraryDependencies += (akkaHttpTestkit % "test").cross(CrossVersion.for3Use2_13),
libraryDependencies += optionalEnumeratum.value,
scalacOptions ++= paradiseFlag(scalaVersion.value)
)
lazy val pekkoHttpSettings = commonSettings ++ Seq(
libraryDependencies += pekkoHttp,
libraryDependencies += pekkoStream,
libraryDependencies += pekkoStreamTestkit % "test",
libraryDependencies += pekkoHttpTestkit % "test",
libraryDependencies += enumeratumInTest.value,
scalacOptions ++= paradiseFlag(scalaVersion.value)
)
lazy val http4sSettings = commonSettings ++ Seq(
libraryDependencies += http4s.value,
scalacOptions ++= paradiseFlag(scalaVersion.value)
)
lazy val http4sStirSettings = commonSettings ++ Seq(
libraryDependencies += http4s.value,
libraryDependencies += http4sStir.value,
libraryDependencies += enumeratumInTest.value,
scalacOptions ++= paradiseFlag(scalaVersion.value)
)
lazy val jsonschemaSettings = commonSettings ++ Seq(
libraryDependencies += jsonschema
)
lazy val scalacheckSettings = commonSettings ++ Seq(
libraryDependencies += scalacheck,
libraryDependencies += (enumeratumInTest.value)
) ++ Seq(
libraryDependencies ++= (if (scalaVersion.value.startsWith("3")) Seq(scalacheckDerived)
else Seq(scalacheckMagnolify.cross(CrossVersion.for3Use2_13)))
)
lazy val taggedSettings = commonSettings ++ Seq(
libraryDependencies += optionalSlick,
libraryDependencies += optional(circe.value)
)
lazy val opaqueSettings = commonSettings
lazy val examplesSettings = commonSettings ++ Seq(
libraryDependencies += slickPg,
libraryDependencies += circeParser.value,
libraryDependencies ++= enumeratumInExamples,
libraryDependencies ++= pekkoHttpInExamples,
scalacOptions ++= paradiseFlag(scalaVersion.value)
)
lazy val taggedMetaSettings = metaSettings ++ Seq(
libraryDependencies += optional(sprayJson),
libraryDependencies += optional(circe.value)
)
lazy val instancesSettings = commonSettings
lazy val pureConfigSettings = commonSettings ++ Seq(
libraryDependencies += pureConfig,
libraryDependencies += (if (scalaVersion.value.startsWith("3")) pureConfigGenericScala3 else pureConfigGeneric) % "test"
)
lazy val core = crossProject(JSPlatform, NativePlatform, JVMPlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("core"))
.settings(coreSettings *)
.settings(publishSettings *)
.settings(
name := "core",
description := "Macros and utils supporting Kebs library",
moduleName := "kebs-core"
)
lazy val slickSupport = project
.in(file("slick"))
.dependsOn(core.jvm, enumeratumSupport.jvm, instances.jvm % "test -> test")
.settings(slickSettings *)
.settings(publishSettings *)
.settings(
name := "slick",
description := "Library to eliminate the boilerplate code that comes with the use of Slick",
moduleName := "kebs-slick",
crossScalaVersions := supportedScalaVersions
)
lazy val doobieSupport = project
.in(file("doobie"))
.dependsOn(instances.jvm, enumeratumSupport.jvm, enumSupport.jvm, opaque.jvm % "test -> test")
.settings(doobieSettings *)
.settings(publishSettings *)
.settings(
name := "doobie",
description := "Library to eliminate the boilerplate code that comes with the use of Doobie",
moduleName := "kebs-doobie",
crossScalaVersions := supportedScalaVersions
)
lazy val sprayJsonSupport = project
.in(file("spray-json"))
.dependsOn(enumeratumSupport.jvm, instances.jvm % "test -> test")
.settings(sprayJsonSettings *)
.settings(publishSettings *)
.settings(
name := "spray-json",
description := "Automatic generation of Spray json formats for case-classes",
moduleName := "kebs-spray-json",
crossScalaVersions := supportedScalaVersions
)
lazy val playJsonSupport = crossProject(JSPlatform, JVMPlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("play-json"))
.dependsOn(core, enumSupport, enumeratumSupport % "test -> test", instances % "test -> test")
.settings(playJsonSettings *)
.settings(publishSettings *)
.settings(
name := "play-json",
description := "Automatic generation of Play json formats for case-classes",
moduleName := "kebs-play-json",
crossScalaVersions := supportedScalaVersions
)
lazy val circeSupport = crossProject(JSPlatform, NativePlatform, JVMPlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("circe"))
.dependsOn(core, enumSupport, enumeratumSupport % "test -> test", instances % "test -> test")
.settings(circeSettings *)
.settings(crossBuildSettings *)
.settings(publishSettings *)
.settings(
name := "circe",
description := "Automatic generation of circe formats for case-classes",
moduleName := "kebs-circe"
)
lazy val akkaHttpSupport = project
.in(file("akka-http"))
.dependsOn(core.jvm, enumeratumSupport.jvm, instances.jvm % "test -> test", tagged.jvm % "test -> test", taggedMeta.jvm % "test -> test")
.settings(akkaHttpSettings *)
.settings(publishSettings *)
.settings(disableScala(List("3")))
.settings(
name := "akka-http",
description := "Automatic generation of akka-http deserializers for 1-element case classes",
moduleName := "kebs-akka-http",
crossScalaVersions := supportedScalaVersions
)
lazy val pekkoHttpSupport = project
.in(file("pekko-http"))
.dependsOn(
core.jvm,
enumeratumSupport.jvm,
enumSupport.jvm,
instances.jvm % "test -> test",
tagged.jvm % "test -> test",
taggedMeta.jvm % "test -> test"
)
.settings(pekkoHttpSettings *)
.settings(publishSettings *)
.settings(
name := "pekko-http",
description := "Automatic generation of pekko-http deserializers for 1-element case classes",
moduleName := "kebs-pekko-http",
crossScalaVersions := supportedScalaVersions
)
lazy val http4sSupport = crossProject(JSPlatform, JVMPlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Full)
.in(file("http4s"))
.dependsOn(core, instances, enumSupport % "test -> test", opaque % "test -> test", tagged % "test -> test", taggedMeta % "test -> test")
.settings(http4sSettings *)
.settings(publishSettings *)
.settings(
name := "http4s",
description := "Automatic generation of http4s deserializers for 1-element case classes, opaque and tagged types",
moduleName := "kebs-http4s",
crossScalaVersions := supportedScalaVersions
)
lazy val http4sStirSupport = crossProject(JSPlatform, JVMPlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Full)
.in(file("http4s-stir"))
.dependsOn(
core,
instances,
enumSupport % "test -> test",
circeSupport % "test -> test",
opaque % "test -> test",
tagged % "test -> test",
taggedMeta % "test -> test"
)
.settings(http4sStirSettings *)
.jvmSettings(
libraryDependencies += http4sStirTestkit.value % "test"
)
.settings(publishSettings *)
.settings(
name := "http4s-stir",
description := "Automatic generation of http4s-stir deserializers for 1-element case classes, opaque and tagged types",
moduleName := "kebs-http4s-stir",
crossScalaVersions := supportedScalaVersions
)
lazy val jsonschemaSupport = project
.in(file("jsonschema"))
.dependsOn(core.jvm)
.settings(jsonschemaSettings *)
.settings(publishSettings *)
.settings(disableScala(List("3")))
.settings(
name := "jsonschema",
description := "Automatic generation of JSON Schemas for case classes",
moduleName := "kebs-jsonschema",
crossScalaVersions := supportedScalaVersions
)
lazy val scalacheckSupport = project
.in(file("scalacheck"))
.dependsOn(core.jvm, enumSupport.jvm, opaque.jvm % "test -> test")
.settings(scalacheckSettings *)
.settings(publishSettings *)
.settings(
name := "scalacheck",
description := "Automatic generation of scalacheck generators for case classes",
moduleName := "kebs-scalacheck",
crossScalaVersions := supportedScalaVersions
)
lazy val tagged = crossProject(JSPlatform, NativePlatform, JVMPlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Full)
.in(file("tagged"))
.dependsOn(core)
.settings(taggedSettings *)
.settings(publishSettings *)
.settings(
name := "tagged",
description := "Representation of tagged types",
moduleName := "kebs-tagged",
crossScalaVersions := supportedScalaVersions
)
lazy val opaque = crossProject(JSPlatform, NativePlatform, JVMPlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("opaque"))
.dependsOn(core)
.settings(opaqueSettings *)
.settings(publishSettings *)
.settings(
name := "opaque",
description := "Representation of opaque types",
moduleName := "kebs-opaque",
crossScalaVersions := supportedScalaVersions
)
.settings(disableScala(List("2.13")))
lazy val taggedMeta = crossProject(JSPlatform, NativePlatform, JVMPlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Full)
.in(file("tagged-meta"))
.dependsOn(
core,
tagged
)
.jvmConfigure(
_.dependsOn(
sprayJsonSupport % "test -> test",
circeSupport.jvm % "test -> test",
jsonschemaSupport % "test -> test",
scalacheckSupport % "test -> test"
)
)
.settings(taggedMetaSettings *)
.settings(publishSettings *)
.settings(disableScala(List("3")))
.settings(
name := "tagged-meta",
description := "Representation of tagged types - code generation based on scala-meta",
moduleName := "kebs-tagged-meta",
crossScalaVersions := supportedScalaVersions
)
lazy val examples = project
.in(file("examples"))
.dependsOn(slickSupport, sprayJsonSupport, playJsonSupport.jvm, pekkoHttpSupport, taggedMeta.jvm, circeSupport.jvm, instances.jvm)
.settings(examplesSettings *)
.settings(noPublishSettings *)
.settings(disableScala(List("3")))
.settings(
name := "examples",
moduleName := "kebs-examples"
)
lazy val instances = crossProject(JSPlatform, NativePlatform, JVMPlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("instances"))
.dependsOn(core)
.settings(instancesSettings *)
.jsSettings(
libraryDependencies += scalaJavaTime.value
)
.nativeSettings(
libraryDependencies += scalaJavaTime.value
)
.settings(publishSettings *)
.settings(
name := "instances",
description := "Standard type mappings",
moduleName := "kebs-instances"
)
lazy val enumSupport = crossProject(JSPlatform, NativePlatform, JVMPlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("enum"))
.dependsOn(core)
.settings(enumSettings *)
.settings(publishSettings *)
.settings(
name := "enum",
moduleName := "kebs-enum"
)
lazy val enumeratumSupport = crossProject(JSPlatform, NativePlatform, JVMPlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("enumeratum"))
.dependsOn(core)
.settings(enumeratumSettings *)
.settings(publishSettings *)
.settings(
name := "enumeratum",
moduleName := "kebs-enumeratum"
)
lazy val pureConfigSupport = project
.in(file("pureconfig"))
.dependsOn(core.jvm)
.settings(pureConfigSettings *)
.settings(publishSettings *)
.settings(
name := "pureconfig",
moduleName := "kebs-pureconfig"
)
lazy val kebs = project
.in(file("."))
.aggregate(
tagged.jvm,
tagged.js,
tagged.native,
opaque.jvm,
opaque.js,
opaque.native,
core.jvm,
core.js,
core.native,
slickSupport,
doobieSupport,
sprayJsonSupport,
playJsonSupport.jvm,
playJsonSupport.js,
circeSupport.jvm,
circeSupport.js,
circeSupport.native,
jsonschemaSupport,
scalacheckSupport,
akkaHttpSupport,
pekkoHttpSupport,
http4sSupport.jvm,
http4sSupport.js,
http4sStirSupport.jvm,
http4sStirSupport.js,
taggedMeta.jvm,
taggedMeta.js,
taggedMeta.native,
instances.jvm,
instances.js,
instances.native,
enumSupport.jvm,
enumSupport.js,
enumSupport.native,
enumeratumSupport.jvm,
enumeratumSupport.js,
enumeratumSupport.native,
pureConfigSupport
)
.settings(baseSettings *)
.settings(noPublishSettings)
.settings(
name := "kebs",
description := "Library to eliminate the boilerplate code"
)