This repository has been archived by the owner on Nov 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
100 lines (91 loc) · 2.98 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
90
91
92
93
94
95
96
97
98
99
100
// *****************************************************************************
// Projects
// *****************************************************************************
lazy val `aws-zio-s3` =
project
.in(file("."))
.enablePlugins(AutomateHeaderPlugin)
.settings(settings)
.settings(
libraryDependencies ++= Seq(
library.awsS3Async,
library.zio,
library.scalaCheck % Test,
library.scalaTest % Test
)
)
// *****************************************************************************
// Library dependencies
// *****************************************************************************
lazy val library =
new {
object Version {
val awsS3 = "2.10.69"
val zio = "1.0.0-RC17"
val scalaCheck = "1.14.0"
val scalaTest = "3.0.8"
}
val awsS3Async = "software.amazon.awssdk" % "s3" % Version.awsS3
val zio = "dev.zio" %% "zio" % Version.zio
val scalaCheck = "org.scalacheck" %% "scalacheck" % Version.scalaCheck
val scalaTest = "org.scalatest" %% "scalatest" % Version.scalaTest
}
// *****************************************************************************
// Settings
// *****************************************************************************
lazy val settings =
commonSettings ++
scalafmtSettings ++
sonatypeSettings
lazy val commonSettings =
Seq(
scalaVersion := "2.12.10",
crossScalaVersions := Seq("2.12.10", "2.13.1"),
organization := "com.github.branislavlazic",
organizationName := "Branislav Lazic",
startYear := Some(2019),
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
homepage := Some(url("https://github.com/BranislavLazic/aws-zio-s3")),
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-language:_",
"-encoding",
"UTF-8"
),
Compile / unmanagedSourceDirectories := Seq((Compile / scalaSource).value),
Test / unmanagedSourceDirectories := Seq((Test / scalaSource).value)
)
lazy val scalafmtSettings =
Seq(
scalafmtOnCompile := true
)
lazy val sonatypeSettings =
Seq(
version := "0.3.0",
sonatypeProfileName := "com.github.branislavlazic",
scmInfo := Some(
ScmInfo(
url("https://github.com/BranislavLazic/aws-zio-s3"),
"scm:[email protected]:BranislavLazic/aws-zio-s3.git"
)
),
developers := List(
Developer(
id = "BranislavLazic",
name = "Branislav Lazic",
email = "[email protected]",
url = url("http://github.com/BranislavLazic")
)
),
description := "ZIO wrapper for AWS S3 SDK async client.",
pomIncludeRepository := { _ =>
false
},
publishTo := sonatypePublishToBundle.value,
publishMavenStyle := true
)
addCommandAlias("rel", "reload")
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("c", "compile")
addCommandAlias("t", "test")