forked from zio/zio-sqs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
81 lines (73 loc) · 2.49 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
val mainScala = "2.13.2"
val allScala = Seq(mainScala, "2.12.10")
organization := "dev.zio"
homepage := Some(url("https://github.com/zio/zio-sqs"))
name := "zio-sqs"
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
scalaVersion := mainScala
parallelExecution in Test := false
fork in Test := true
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray)
pgpPublicRing := file("/tmp/public.asc")
pgpSecretRing := file("/tmp/secret.asc")
scmInfo := Some(
ScmInfo(url("https://github.com/zio/zio-sqs/"), "scm:git:git@github.com:zio/zio-sqs.git")
)
developers := List(
Developer(
"ghostdogpr",
"Pierre Ricadat",
"ghostdogpr@gmail.com",
url("https://github.com/ghostdogpr")
)
)
publishTo := sonatypePublishToBundle.value
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "1.0.0",
"dev.zio" %% "zio-streams" % "1.0.0",
"software.amazon.awssdk" % "sqs" % "2.13.74",
"org.scala-lang.modules" %% "scala-collection-compat" % "2.1.6",
"dev.zio" %% "zio-test" % "1.0.0" % "test",
"dev.zio" %% "zio-test-sbt" % "1.0.0" % "test",
"org.elasticmq" %% "elasticmq-rest-sqs" % "0.15.6" % "test",
"org.elasticmq" %% "elasticmq-core" % "0.15.6" % "test",
compilerPlugin("org.typelevel" %% "kind-projector" % "0.10.3"),
compilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")
)
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-explaintypes",
"-Yrangepos",
"-feature",
"-language:higherKinds",
"-language:existentials",
"-unchecked",
"-Xlint:_,-type-parameter-shadow",
"-Ywarn-numeric-widen",
"-Ywarn-unused",
"-Ywarn-value-discard"
) ++ (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 12)) =>
Seq(
"-Xfuture",
"-Xsource:2.13",
"-Yno-adapted-args",
"-Ypartial-unification",
"-Ywarn-extra-implicit",
"-Ywarn-inaccessible",
"-Ywarn-infer-any",
"-Ywarn-nullary-override",
"-Ywarn-nullary-unit",
"-opt-inline-from:<source>",
"-opt-warnings",
"-opt:l:inline"
)
case _ => Nil
})
fork in run := true
crossScalaVersions := allScala
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework")
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")