-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
84 lines (73 loc) · 2.59 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
resolvers ++= Seq(
Resolver.mavenLocal,
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
)
inThisBuild(
List(
scalaVersion := "2.13.3",
crossScalaVersions := Seq("2.12.12", "2.13.3"),
organization := "hot.crew",
homepage := Some(url("https://github.com/hot-crew/zio-aws-s3")),
startYear := Some(2020),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"tampler",
"Boris V.Kuznetsov",
url("https://github.com/tampler")
)
),
scmInfo := Some(
ScmInfo(url("https://github.com/hot-crew/zio-aws-s3"), "scm:[email protected]:hot-crew/zio-aws-s3.git")
)
)
)
// *****************************************************************************
// Projects
// *****************************************************************************
lazy val core =
project
.in(file("."))
.enablePlugins(AutomateHeaderPlugin)
.settings(commonSettings, pubSettings)
.settings(
commonDeps,
zioDeps,
awsDeps
)
// *****************************************************************************
// Library dependencies
// *****************************************************************************
lazy val awsDeps = libraryDependencies ++= Seq("software.amazon.awssdk" % "s3" % Version.aws)
lazy val zioDeps = libraryDependencies ++= Seq(
"dev.zio" %% "zio" % Version.zio,
"dev.zio" %% "zio-test" % Version.zio % "test",
"dev.zio" %% "zio-test-sbt" % Version.zio % "test"
)
lazy val commonDeps = libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-collection-compat" % "2.2.0",
compilerPlugin("com.github.ghik" % "silencer-plugin" % Version.silencer cross CrossVersion.full),
"com.github.ghik" % "silencer-lib" % Version.silencer % Provided cross CrossVersion.full
)
// *****************************************************************************
// Settings
// *****************************************************************************
lazy val commonSettings =
Seq(
scalacOptions -= "-Xfatal-warnings",
name := "zio-aws-s3",
version := "0.4.17",
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
)
lazy val pubSettings = Seq(
bintrayRepository := "zio-aws-s3",
publishMavenStyle := true,
bintrayOrganization := Some("hot-crew")
)
// Aliases
addCommandAlias("rel", "reload")
addCommandAlias("com", "compile")
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("fix", "all compile:scalafix test:scalafix")