forked from ignacioPL/s3mock
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
81 lines (67 loc) · 2.65 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
import sbt.Keys.resolvers
name := "s3mock"
organization := "io.flow"
scalaVersion := "2.13.6"
lazy val allScalacOptions = Seq(
"-deprecation",
"-feature",
"-Xfatal-warnings",
"-unchecked",
"-Xcheckinit",
"-Xlint:adapted-args",
"-Ypatmat-exhaust-depth", "100", // Fixes: Exhaustivity analysis reached max recursion depth, not all missing cases are reported.
"-Wconf:src=generated/.*:silent",
"-Wconf:src=target/.*:silent", // silence the unused imports errors generated by the Play Routes
)
licenses := Seq("MIT" -> url("https://opensource.org/licenses/MIT"))
homepage := Some(url("https://github.com/flowcommerce/s3mock"))
// Must match typesafe play version
// com.typesafe.akka:akka-actor-typed_2.13:2.6.3
// pulled in by
// com.typesafe.play:play_2.13:2.8.1
val akkaVersion = "2.6.10"
val akkaHttpVersion = "10.2.2"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-xml" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion % "test",
"org.scala-lang.modules" %% "scala-xml" % "1.3.0",
"com.github.pathikrit" %% "better-files" % "3.9.1",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.2",
"com.amazonaws" % "aws-java-sdk-s3" % "1.11.925",
"org.scalatestplus" %% "scalacheck-1-14" % "3.2.2.0" % Test,
"org.scalatest" %% "scalatest-shouldmatchers" % "3.2.3" % "test",
"org.scalatest" %% "scalatest-flatspec" % "3.2.3" % "test",
"ch.qos.logback" % "logback-classic" % "1.2.3" % "test",
"org.iq80.leveldb" % "leveldb" % "0.12",
"com.lightbend.akka" %% "akka-stream-alpakka-s3" % "1.1.2" % "test"
)
libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, major)) if major >= 13 =>
Seq("org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.0" % "test")
case _ =>
Seq()
}
}
Test / parallelExecution := false
publishMavenStyle := true
resolvers += "Typesafe repository" at "https://repo.typesafe.com/typesafe/releases/"
resolvers += "scalaz-bintray" at "https://dl.bintray.com/scalaz/releases"
resolvers += "Artifactory" at "https://flow.jfrog.io/flow/libs-release/"
credentials += Credentials(
"Artifactory Realm",
"flow.jfrog.io",
System.getenv("ARTIFACTORY_USERNAME"),
System.getenv("ARTIFACTORY_PASSWORD"),
)
publishTo := {
val host = "https://flow.jfrog.io/flow"
if (isSnapshot.value) {
Some("Artifactory Realm" at s"$host/libs-snapshot-local;build.timestamp=" + new java.util.Date().getTime)
} else {
Some("Artifactory Realm" at s"$host/libs-release-local")
}
}
scalacOptions ++= allScalacOptions