-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
50 lines (47 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
ThisBuild / scalaVersion := "3.1.1"
lazy val startupTransition: State => State = "writeHooks" :: _
lazy val root = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Full)
.settings(
name := "PPS-22-virsim",
assembly / assemblyJarName := "virsim.jar",
Global / onLoad := {
val old = (Global / onLoad).value
startupTransition compose old
},
// add XML report for sonarcloud
jacocoReportSettings := JacocoReportSettings(
"Jacoco Coverage Report",
None,
JacocoThresholds(),
Seq(JacocoReportFormats.ScalaHTML, JacocoReportFormats.XML),
"utf-8"
),
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.13" % Test,
"com.disneystreaming" %% "weaver-monix" % "0.6.15" % Test,
"io.monix" %%% "monix" % "3.4.1",
"dev.optics" %%% "monocle-core" % "3.1.0",
"it.unibo.alice.tuprolog" % "tuprolog" % "3.3.0",
"dev.optics" %%% "monocle-macro" % "3.1.0",
"org.scala-lang" %% "scala3-staging" % scalaVersion.value,
"org.virtuslab" %%% "scala-yaml" % "0.0.4",
"org.jfree" % "jfreechart" % "1.5.3",
"org.scalaz" %%% "scalaz-core" % "7.3.6"
),
testFrameworks += new TestFramework("weaver.framework.Monix")
)
.jsSettings(
scalaJSUseMainModuleInitializer := true,
libraryDependencies ++= Seq("org.scala-js" %%% "scalajs-dom" % "2.2.0")
)
.jvmSettings()
lazy val aggregate = (project in file("."))
.enablePlugins(ScalaUnidocPlugin)
.enablePlugins(SiteScaladocPlugin)
.aggregate(root.jvm, root.js)
.settings(
name := "PPS-22-Virsim",
ScalaUnidoc / siteSubdirName := "latest/api/",
addMappingsToSiteDir(ScalaUnidoc / packageDoc / mappings, ScalaUnidoc / siteSubdirName)
)