forked from zio/zio-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
67 lines (61 loc) · 2.54 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
import BuildHelper._
inThisBuild(
List(
organization := "dev.zio",
homepage := Some(url("https://zio.dev/zio-s3/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer("regis-leray", "Regis Leray", "[email protected]", url("https://github.com/regis-leray"))
),
Test / fork := true,
(Test / parallelExecution) := false,
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-s3/"), "scm:git:[email protected]:zio/zio-s3.git")
)
)
)
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
val zioVersion = "2.0.21"
val awsVersion = "2.25.70"
lazy val root =
project.in(file(".")).settings(publish / skip := true).aggregate(`zio-s3`, docs)
lazy val `zio-s3` = project
.in(file("zio-s3"))
.enablePlugins(BuildInfoPlugin)
.settings(buildInfoSettings("zio.s3"))
.settings(stdSettings("zio-s3"))
.settings(dottySettings)
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-streams" % zioVersion,
"dev.zio" %% "zio-nio" % "2.0.2",
"dev.zio" %% "zio-interop-reactivestreams" % "2.0.2",
"software.amazon.awssdk" % "s3" % awsVersion,
"software.amazon.awssdk" % "sts" % awsVersion,
"dev.zio" %% "zio-test" % zioVersion % Test,
"dev.zio" %% "zio-test-sbt" % zioVersion % Test
),
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework")
)
lazy val docs = project
.in(file("zio-s3-docs"))
.settings(stdSettings("zio-s3-docs"))
.settings(
moduleName := "zio-s3-docs",
scalacOptions -= "-Yno-imports",
scalacOptions -= "-Xfatal-warnings",
projectName := "ZIO S3",
mainModuleName := (`zio-s3` / moduleName).value,
projectStage := ProjectStage.ProductionReady,
docsPublishBranch := "series/2.x",
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(`zio-s3`),
//conflict with the dependency zio-nio & sbt-mdoc
excludeDependencies += "org.scala-lang.modules" % "scala-collection-compat_3"
)
.dependsOn(`zio-s3`)
.enablePlugins(WebsitePlugin)