/
build.sbt
52 lines (46 loc) · 1.9 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
val scala3Version = "3.1.2-RC3"
val mainVersion = "0.2.5"
ThisBuild / organization := "ru.primetalk"
ThisBuild / version := mainVersion
ThisBuild / scalaVersion := scala3Version
ThisBuild / versionScheme := Some("early-semver")
// scalacOptions ++= Seq(
// "-deprecation", // emit warning and location for usages of deprecated APIs
// "-explain", // explain errors in more detail
// "-explain-types", // explain type errors in more detail
// "-feature", // emit warning and location for usages of features that should be imported explicitly
// "-indent", // allow significant indentation.
// "-new-syntax", // require `then` and `do` in control expressions.
// "-print-lines", // show source code line numbers.
// "-unchecked", // enable additional warnings where generated code depends on assumptions
// "-Ykind-projector", // allow `*` as wildcard to be compatible with kind projector
// "-Xfatal-warnings", // fail the compilation if there are any warnings
// "-Xmigration" // warn about constructs whose behavior may have changed since version
// // "-Xmax-inlines=64"
// )
val catsEffect = "org.typelevel" %% "cats-effect" % "3.3.4"
val catsCore = "org.typelevel" %% "cats-core" % "2.7.0"
val commonSettings = Seq(
scalaVersion := scala3Version,
// scalacOptions += "-Xmax-inlines=50",
libraryDependencies ++= Seq(
catsCore,
"com.novocode" % "junit-interface" % "0.11" % Test,
"org.scalacheck" %% "scalacheck" % "1.15.4" % Test,
"org.scalatest" %% "scalatest" % "3.2.11" % Test,
)
)
lazy val root = (project in file("."))
.aggregate(
sourceCode,
)
.settings(
name := "source-code-gen",
publish / skip := true,
)
lazy val sourceCode = project
.in(file("source-code"))
.settings(
name := "source-code",
)
.settings(commonSettings :_*)