-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
70 lines (59 loc) · 2.07 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
68
69
70
import Dependencies._
import sbt.Keys.libraryDependencies
ThisBuild / scalaVersion := "2.13.4"
ThisBuild / organization := "net.rollercoders.akka"
ThisBuild / organizationName := "Rollercoders"
ThisBuild / scmInfo := Some(
ScmInfo(url("https://github.com/lucataglia/akka-awp"), "scm:[email protected]:lucataglia/akka-awp"))
ThisBuild / developers := List(
Developer("lucataglia", "Luca Tagliabue", "[email protected]", url("https://github.com/lucataglia"))
)
ThisBuild / description := "Akka-awp is a test library that through ActorWithProbe instances helps in writing integration tests for Akka actors applications."
ThisBuild / licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
ThisBuild / homepage := Some(url("https://github.com/lucataglia/akka-awp"))
ThisBuild / publishMavenStyle := true
ThisBuild / crossPaths := true
ThisBuild / pomIncludeRepository := { _ =>
false
}
ThisBuild / publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
ThisBuild / credentials += Credentials(Path.userHome / ".sbt" / "1.0" / ".credentials")
ThisBuild / resolvers += Resolver.jcenterRepo
lazy val root = project
.in(file("."))
.settings(
name := "akka-awp",
skip in publish := true
)
.aggregate(`akka-awp-testkit`)
lazy val `akka-awp-testkit` = project
.in(file("akka-awp-testkit"))
.settings(
name := "akka-awp-testkit",
libraryDependencies ++= akkaAwpTestKitDeps,
crossScalaVersions ++= Seq("2.12.12", "2.13.4")
)
lazy val `akka-awp-examples` = project
.in(file("akka-awp-examples"))
.settings(
name := "akka-awp-examples",
libraryDependencies ++= akkaAwpExamplesDeps,
skip in publish := true
)
.dependsOn(`akka-awp-testkit`)
// TEST: run "sbt testAkkaAwp" to execute all the tests under akka-awp-examples sub-project
lazy val testAkkaAwp = taskKey[Unit]("Run akka-awp-examples tests")
testAkkaAwp := {
(`akka-awp-examples` / Test / test).value
}
ThisBuild / scalacOptions := Seq(
"-unchecked",
"-deprecation",
"-feature",
"-language:postfixOps"
)