-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
70 lines (62 loc) · 1.77 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
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / scalaVersion := "3.6.2"
ThisBuild / organization := "com.peknight"
lazy val commonSettings = Seq(
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-unchecked",
"-Xfatal-warnings",
"-language:strictEquality",
"-Xmax-inlines:64"
),
)
lazy val random = (project in file("."))
.aggregate(
randomCore.jvm,
randomCore.js,
randomEffect.jvm,
randomEffect.js,
randomMonocle.jvm,
randomMonocle.js,
)
.settings(commonSettings)
.settings(
name := "random",
)
lazy val randomCore = (crossProject(JSPlatform, JVMPlatform) in file("random-core"))
.settings(commonSettings)
.settings(
name := "random-core",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % catsVersion,
"org.scodec" %%% "scodec-bits" % scodecVersion,
"org.scalacheck" %%% "scalacheck" % scalaCheckVersion % Test,
"com.peknight" %%% "generic-core" % pekGenericVersion % Test,
),
)
lazy val randomEffect = (crossProject(JSPlatform, JVMPlatform) in file("random-effect"))
.dependsOn(randomCore)
.settings(commonSettings)
.settings(
name := "random-effect",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-effect" % catsEffectVersion,
),
)
lazy val randomMonocle = (crossProject(JSPlatform, JVMPlatform) in file("random-monocle"))
.dependsOn(randomCore)
.settings(commonSettings)
.settings(
name := "random-monocle",
libraryDependencies ++= Seq(
"dev.optics" %%% "monocle-core" % monocleVersion,
),
)
val catsVersion = "2.12.0"
val scodecVersion = "1.2.1"
val catsEffectVersion = "3.5.7"
val monocleVersion = "3.3.0"
val scalaCheckVersion = "1.18.0"
val pekVersion = "0.1.0-SNAPSHOT"
val pekGenericVersion = pekVersion