-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
52 lines (47 loc) · 1.79 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
import org.scoverage.coveralls.Imports.CoverallsKeys._
lazy val commonSettings = Seq(
scalaVersion := "2.12.0" ,
name := "agora",
version := "0.1.0-alpha-SNAPSHOT",
organization := "org.economicsl",
organizationName := "EconomicSL",
organizationHomepage := Some(url("https://economicsl.github.io/")),
coverallsTokenFile := Some(".coveralls.token"),
libraryDependencies ++= Seq(
"com.typesafe" % "config" % "1.3.1",
"org.apache.commons" % "commons-math3" % "3.6.1"
),
resolvers ++= Seq(
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
"Sonatype OSS Releases" at "https://oss.sonatype.org/content/repositories/releases"
),
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishMavenStyle := true,
scalacOptions ++= Seq("-unchecked", "-deprecation")
)
lazy val Functional = config("functional") extend Test
lazy val Performance = config("performance") extend Test
lazy val core = (project in file(".")).
settings(commonSettings: _*).
configs(Functional).
settings(inConfig(Functional)(Defaults.testSettings): _*).
settings(
libraryDependencies ++= Seq(
"com.typesafe" % "config" % "1.3.1",
"org.scalatest" %% "scalatest" % "3.0.1" % "functional, test"
),
parallelExecution in Functional := false
).
configs(Performance).
settings(inConfig(Performance)(Defaults.testSettings): _*).
settings(
testFrameworks += new TestFramework("org.scalameter.ScalaMeterFramework"),
libraryDependencies += "com.storm-enroute" %% "scalameter" % "0.8.2" % "performance",
parallelExecution in Performance := false
)