-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathbuild.sbt
67 lines (57 loc) · 2.58 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
65
66
67
organization := "com.typesafe.akka"
name := "akka-stream-contrib"
crossScalaVersions := Seq("2.13.0")
scalaVersion := crossScalaVersions.value.head
val AkkaVersion = "2.6.0"
resolvers += "Akka library repository".at("https://repo.akka.io/maven")
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-stream" % AkkaVersion,
"com.typesafe.akka" %% "akka-stream-testkit" % AkkaVersion % Test,
"junit" % "junit" % "4.12" % Test, // Common Public License 1.0
"com.novocode" % "junit-interface" % "0.11" % Test, // BSD-like
"com.google.jimfs" % "jimfs" % "1.1" % Test, // ApacheV2
"org.scalatest" %% "scalatest" % "3.1.0" % Test, // ApacheV2
"org.scalamock" %% "scalamock" % "4.4.0" % Test, // ApacheV2
"com.miguno.akka" %% "akka-mock-scheduler" % "0.5.5" % Test // ApacheV2
)
organizationName := "Lightbend Inc."
organizationHomepage := Some(url("http://www.lightbend.com"))
homepage := Some(url("https://github.com/akka/akka-stream-contrib"))
licenses := Seq(("Apache License, Version 2.0", url("http://www.apache.org/licenses/LICENSE-2.0")))
scmInfo := Some(
ScmInfo(url("https://github.com/akka/akka-stream-contrib"), "[email protected]:akka/akka-stream-contrib.git")
)
developers += Developer("contributors",
"Contributors",
"https://gitter.im/akka/dev",
url("https://github.com/akka/akka-stream-contrib/graphs/contributors"))
scalacOptions ++=
Seq("-encoding", "UTF-8", "-feature", "-unchecked", "-deprecation", "-Xlint") ++ (
if (scalaVersion.value startsWith "2.13.")
Seq(
"-Wdead-code",
"-Wnumeric-widen",
"-Xsource:2.14"
)
else
Seq(
//"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Xfuture"
)
)
// By default scalatest futures time out in 150 ms, dilate that to 600ms.
// This should not impact the total test time as we don't expect to hit this
// timeout, and indeed it doesn't appear to.
Test / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-F", "4")
// show full stack traces and test case durations
Test / testOptions += Tests.Argument("-oDF")
// -v Log "test run started" / "test started" / "test run finished" events on log level "info" instead of "debug".
// -a Show stack traces and exception class name for AssertionErrors.
testOptions += Tests.Argument(TestFrameworks.JUnit, "-v", "-a")
enablePlugins(AutomateHeaderPlugin)
headerLicense := Some(HeaderLicense.Custom(s"Copyright (C) 2016 Lightbend Inc. <http://www.lightbend.com>"))
scalafmtOnCompile := true