-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.sbt
79 lines (70 loc) · 2.91 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
ThisBuild / scalaVersion := "3.3.0"
ThisBuild / version := "2.0.1"
ThisBuild / organization := "io.github.ollls"
ThisBuild / organizationName := "ollls"
ThisBuild / versionScheme := Some("strict")
ThisBuild / organizationHomepage := Some(url("https://github.com/ollls/zio-tls-http"))
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/ollls/zio-tls-http"),
"scm:[email protected]:ollls/zio-tls-http.git"
)
)
ThisBuild / developers := List(
Developer(
id = "ostrygun",
name = "Oleg Strygun",
email = "[email protected]",
url = url("https://github.com/ollls/")
)
)
ThisBuild / description := "Scala ZIO/zio-json Web Server with native TLS"
ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
ThisBuild / homepage := Some(url("https://github.com/ollls/zio-tls-http"))
ThisBuild / credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
ThisBuild / credentials += Credentials(
"GnuPG Key ID",
"gpg",
"F85809244447DB9FA35A3C9B1EB44A5FC60F4104", // key identifier
"ignored" // this field is ignored; passwords are supplied by pinentry
)
// Remove all additional repository other than Maven Central from POM
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishTo := {
val nexus = "https://s01.oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / publishMavenStyle := true
Runtime / unmanagedClasspath += baseDirectory.value / "src" / "main" / "resources"
lazy val root = (project in file("."))
.settings(
name := "zio-tls-http",
maxErrors := 3,
retrieveManaged := true,
libraryDependencies += "dev.zio" %% "zio" % "2.0.15",
libraryDependencies += "dev.zio" %% "zio-test" % "2.0.15",
libraryDependencies += "dev.zio" %% "zio-json" % "0.5.0",
libraryDependencies += "dev.zio" %% "zio-logging-slf4j" % "2.1.13",
libraryDependencies += "org.slf4j" % "slf4j-api" % "2.0.4",
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.3.5"
)
lazy val example = (project in file("examples/start"))
.settings(
organization := "com.ols",
name := "zio-tls-http-exampe",
version := "0.0.1",
maxErrors := 3,
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "2.0.8"
),
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
)
.dependsOn(root)
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-no-indent"
)
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("chk", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")