This repository has been archived by the owner on Mar 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.sbt
48 lines (40 loc) · 1.46 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
// Defining dependencies
val reactorVersion = "3.3.9.RELEASE"
val reactorCore = "io.projectreactor" % "reactor-core" % reactorVersion
//test libraries
val micrometer = "io.micrometer" % "micrometer-core" % "1.5.4" % "test"
val mockitoInline = "org.mockito" % "mockito-inline" % "3.5.0" % "test"
val mockitoScala = "org.mockito" %% "mockito-scala" % "1.14.8" % "test"
val scalaTest = "org.scalatest" %% "scalatest" % "3.2.1" % "test"
val reactorTest = "io.projectreactor" % "reactor-test" % reactorVersion % "test"
//Scala versions for cross compiling
lazy val scala212 = "2.12.12"
lazy val scala213 = "2.13.4"
lazy val supportedScalaVersions = List(scala212, scala213)
ThisBuild / scalaVersion := scala212
lazy val root = (project in file("."))
.settings(
crossScalaVersions := supportedScalaVersions,
name := "reactor-scala-extensions",
libraryDependencies += reactorCore,
libraryDependencies += micrometer,
libraryDependencies += mockitoScala,
libraryDependencies += scalaTest,
libraryDependencies += reactorTest,
libraryDependencies += mockitoInline
)
// Prevent test being executed in parallel as it may failed for the Scheduler and Virtual Scheduler
Test / parallelExecution := false
// Scala Compiler Options
scalacOptions ++= Seq(
"-target:jvm-1.8"
)
// Scaladoc compiler options
Compile / doc / scalacOptions ++= Seq(
"-no-link-warnings"
)
autoAPIMappings := true
// SCoverage
//coverageEnabled := true
coverageMinimum := 83.34
coverageFailOnMinimum := true