-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
64 lines (57 loc) · 1.71 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
import _root_.io.github.nafg.scalacoptions.{ScalacOptions, options}
ThisBuild / crossScalaVersions := Seq("2.12.20", "2.13.15", "3.3.4")
ThisBuild / scalaVersion := {
val versions = (ThisBuild / crossScalaVersions).value
if (sys.props.contains("idea.managed"))
versions.filter(_.startsWith("2.")).last
else
versions.last
}
ThisBuild / organization := "io.github.nafg.simpleivr"
def ScalaTest = "org.scalatest" %% "scalatest" % "3.2.19"
ThisBuild / scalacOptions ++=
ScalacOptions.all(scalaVersion.value)(
(o: options.Common) =>
o.deprecation ++
o.feature ++
o.unchecked,
(o: options.V2) =>
o.explaintypes ++ Seq(
"-Xlint:_",
"-Ywarn-dead-code",
"-Ywarn-extra-implicit",
"-Ywarn-numeric-widen",
"-Ywarn-unused:_",
"-Ywarn-value-discard"
),
(o: options.V2_12) =>
o.language("higherKinds") ++
o.Xfuture ++
o.YpartialUnification,
(o: options.V3) =>
o.explainTypes
)
lazy val core = project
.settings(
name := "simpleivr-core",
libraryDependencies ++= Seq(
"com.lihaoyi" %% "sourcecode" % "0.4.2",
"org.typelevel" %% "cats-free" % "2.12.0",
"org.typelevel" %% "cats-effect" % "3.5.7",
ScalaTest % Test
)
)
lazy val testing = project
.dependsOn(core % "compile->compile;test->test")
.settings(
name := "simpleivr-testing",
libraryDependencies += ScalaTest
)
lazy val asterisk = project
.dependsOn(core)
.settings(
name := "simpleivr-asterisk",
libraryDependencies += "org.asteriskjava" % "asterisk-java" % "3.41.0",
libraryDependencies += "org.scala-lang.modules" %% "scala-collection-compat" % "2.12.0"
)
publish / skip := true