-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathbuild.sbt
50 lines (42 loc) · 2.24 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
lazy val netLogoVersion = "6.4.0"
scalaVersion := "2.12.12"
scalacOptions ++= Seq("-feature", "-unchecked", "-deprecation")
resolvers ++= Seq(
"Typesafe Repo" at "https://repo.typesafe.com/typesafe/releases/"
, "netlogoheadless" at "https://dl.cloudsmith.io/public/netlogo/netlogo/maven/"
)
javaOptions ++= Seq(
"-Dorg.nlogo.onLocal=" + Option(System.getProperty("org.nlogo.onLocal")).getOrElse("false"),
"-Dorg.nlogo.is3d=" + Option(System.getProperty("org.nlogo.is3d")).getOrElse("false"),
"-Dcom.sun.media.jai.disableMediaLib=true", // see https://github.com/NetLogo/GIS-Extension/issues/4
"-Xmx4G"
)
fork := true
lazy val installExtensions = TaskKey[Unit]("install bundled extensions so we can test models that use them")
installExtensions := {
val main = "org.nlogo.workspace.ExtensionInstaller"
// We even install the extensions we can't or won't test just to avoid compile errors with them.
// -Jeremy B May 2021
val args = Seq("arduino", "array", "bitmap", "csv", "gis", "gogo", "ls", "matrix", "nw", "palette", "profiler", "py", "r", "rnd", "sound", "table", "time", "vid", "view2.5d")
val s = streams.value
val cp = (Test / dependencyClasspath).value
(Test / run / runner).value.run(main, cp.files, args, s.log)
}
(Test / test) := (Test / test).dependsOn(installExtensions).value
libraryDependencies ++= Seq(
"org.nlogo" % "netlogo" % netLogoVersion,
"org.scalatest" %% "scalatest" % "3.0.1" % Test,
"commons-io" % "commons-io" % "2.4",
"commons-validator" % "commons-validator" % "1.4.1",
"org.jogamp.jogl" % "jogl-all" % "2.4.0" from "https://jogamp.org/deployment/archive/rc/v2.4.0/jar/jogl-all.jar",
"org.jogamp.gluegen" % "gluegen-rt" % "2.4.0" from "https://jogamp.org/deployment/archive/rc/v2.4.0/jar/gluegen-rt.jar",
"org.apache.commons" % "commons-lang3" % "3.5",
"org.asynchttpclient" % "async-http-client" % "2.12.3",
"com.github.wookietreiber" %% "scala-chart" % "0.5.1",
"com.googlecode.java-diff-utils" % "diffutils" % "1.2" % "test",
"org.jfree" % "jfreesvg" % "3.0",
"com.typesafe" % "config" % "1.3.1" % "test",
"com.vladsch.flexmark" % "flexmark" % "0.20.0" % "test",
"com.vladsch.flexmark" % "flexmark-ext-autolink" % "0.20.0" % "test",
"com.vladsch.flexmark" % "flexmark-util" % "0.20.0" % "test"
)