-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
125 lines (106 loc) · 2.94 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
lazy val scala213 = "2.13.8"
ThisBuild / scalaVersion := scala213
ThisBuild / version := "3.2.0"
lazy val supportedScalaVersions = List(scala213)
lazy val commonSettings = Seq(
organization := "com.datto",
crossScalaVersions := supportedScalaVersions,
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-feature",
"-Xlint",
"-Xfatal-warnings")) ++ stylePreferences
run / fork := true
run / javaOptions += "-Xmx8G -XX:+PrintGC"
val akkaV = "2.6.4"
val scalaTestV = "3.0.8"
lazy val root = project
.in(file("."))
.aggregate(
core,
testkit,
coreTests
).settings(
// crossScalaVersions must be set to Nil on the aggregating project
crossScalaVersions := Nil,
publish / skip := true
)
lazy val core = (project in file("core")).
settings(commonSettings: _*).
settings(
name := "flow").
settings(
libraryDependencies ++= {
Seq(
"com.typesafe.akka" %% "akka-actor" % akkaV,
"com.typesafe.akka" %% "akka-stream" % akkaV
)
}
)
lazy val testkit = (project in file("testkit")).
settings(commonSettings: _*).
settings(
name := "flow-testkit").
settings(
libraryDependencies ++= {
Seq(
"org.scalatest" %% "scalatest" % scalaTestV,
"com.typesafe.akka" %% "akka-testkit" % akkaV
)
}
).dependsOn(core)
lazy val coreTests = (project in file("core-tests")).
settings(commonSettings: _*).
settings(
name := "flow-tests").
settings(
libraryDependencies ++= {
Seq()
}
).dependsOn(core, testkit)
lazy val stylePreferences = Seq(
Compile / compile / wartremoverWarnings ++= Seq(
Wart.StringPlusAny,
Wart.AsInstanceOf,
Wart.IsInstanceOf,
Wart.JavaConversions,
Wart.TraversableOps,
Wart.MutableDataStructures,
Wart.Null,
Wart.Return,
Wart.TryPartial,
Wart.OptionPartial,
Wart.Var,
Wart.While))
publishMavenStyle := true
ThisBuild / 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")
}
pomIncludeRepository := { _ => false }
Test / publishArtifact := false
sonatypeProfileName := "com.datto"
ThisBuild / pomExtra := (
<url>https://github.com/backupify/datto-flow</url>
<licenses>
<license>
<name>MIT</name>
<url>https://github.com/backupify/datto-flow/blob/master/LICENSE.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:backupify/datto-flow.git</url>
<connection>scm:git:[email protected]:backupify/datto-flow.git</connection>
</scm>
<developers>
<developer>
<id>anorwell</id>
<name>Arron Norwell</name>
<url>http://anorwell.com</url>
</developer>
</developers>)