-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
89 lines (78 loc) · 2.97 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
import xerial.sbt.Sonatype.GitHubHosting
lazy val `gatling-kinesis` =
project
.in(file("."))
.enablePlugins(GatlingPlugin)
.settings(settings)
.settings(
libraryDependencies ++= Seq(
library.scalaCheck % Test,
library.scalaTest % Test,
library.scalaTestPlusScalaCheck % Test,
library.gatlingHighCharts % Test,
library.gatlingTestFramework % Test,
library.gatlingCore,
library.awsSdkCore,
library.awsKinesisSdk,
library.awsStsSdk
) ++ library.dockerTestKit
)
// *****************************************************************************
// Library dependencies
// *****************************************************************************
lazy val library =
new {
object Version {
val scalaCheck = "1.14.3"
val scalaTest = "3.1.1"
val scalaTestPlusScalaCheck = "3.1.1.1"
val gatlingVersion = "3.3.1"
val awsSdk = "2.11.12"
val dockerTestKit = "0.9.9"
}
val scalaCheck = "org.scalacheck" %% "scalacheck" % Version.scalaCheck
val scalaTest = "org.scalatest" %% "scalatest" % Version.scalaTest
val scalaTestPlusScalaCheck = "org.scalatestplus" %% "scalacheck-1-14" % Version.scalaTestPlusScalaCheck
val awsSdkCore = "software.amazon.awssdk" % "aws-core" % Version.awsSdk
val awsKinesisSdk = "software.amazon.awssdk" % "kinesis" % Version.awsSdk
val awsStsSdk = "software.amazon.awssdk" % "sts" % Version.awsSdk
val gatlingCore = "io.gatling" % "gatling-core" % Version.gatlingVersion
val gatlingHighCharts = "io.gatling.highcharts" % "gatling-charts-highcharts" % Version.gatlingVersion
val gatlingTestFramework = "io.gatling" % "gatling-test-framework" % Version.gatlingVersion
val dockerTestKit = Seq(
"com.whisk" %% "docker-testkit-scalatest" % Version.dockerTestKit % "test",
"com.whisk" %% "docker-testkit-impl-spotify" % Version.dockerTestKit % "test"
)
}
// *****************************************************************************
// Settings
// *****************************************************************************
lazy val settings = commonSettings ++ publishSettings ++ scalafmtSettings
lazy val commonSettings =
Seq(
// scalaVersion from .travis.yml via sbt-travisci
// scalaVersion := "2.13.1",
organization := "tubi",
organizationName := "Marios",
startYear := Some(2020),
licenses += ("MIT", url("https://opensource.org/licenses/MIT")),
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-language:_",
"-encoding", "UTF-8",
"-Ywarn-unused:imports",
),
parallelExecution in Test := false
)
lazy val scalafmtSettings =
Seq(
scalafmtOnCompile := true,
)
lazy val publishSettings =
Seq(
publishTo := sonatypePublishToBundle.value,
sonatypeProfileName := "com.tubitv",
publishMavenStyle := true,
sonatypeProjectHosting := Some(GitHubHosting("tubitv", "gatling-kinesis", "[email protected]"))
)