-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.sbt
71 lines (65 loc) · 2.89 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
import BuildHelper._
inThisBuild(
List(
organization := "dev.zio",
homepage := Some(url("https://zio.dev/zio-ftp/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer("jdegoes", "John De Goes", "john@degoes.net", url("http://degoes.net")),
Developer("regis-leray", "Regis Leray", "regis.leray@gmail.com", 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-ftp/"),
"scm:git:git@github.com:zio/zio-ftp.git"
)
)
)
)
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
addCommandAlias("fix", "; all compile:scalafix test:scalafix; all scalafmtSbt scalafmtAll")
val zioVersion = "2.1.6"
lazy val root =
project.in(file(".")).settings(publish / skip := true).aggregate(`zio-ftp`, docs)
lazy val `zio-ftp` = project
.in(file("zio-ftp"))
.settings(stdSettings("zio-ftp"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-streams" % zioVersion,
("dev.zio" %% "zio-nio" % "2.0.2").exclude("org.scala-lang.modules", "scala-collection-compat_2.13"),
"com.hierynomus" % "sshj" % "0.39.0",
"commons-net" % "commons-net" % "3.11.0",
"org.scala-lang.modules" %% "scala-collection-compat" % "2.12.0",
"org.apache.logging.log4j" % "log4j-api" % "2.24.0" % Test,
"org.apache.logging.log4j" % "log4j-core" % "2.24.0" % Test,
"org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.24.0" % Test,
"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-ftp-docs"))
.settings(
moduleName := "zio-ftp-docs",
scalacOptions -= "-Yno-imports",
scalacOptions -= "-Xfatal-warnings",
libraryDependencies ++= Seq("dev.zio" %% "zio" % zioVersion),
scalaVersion := Scala213,
crossScalaVersions := Seq(Scala212, Scala213, Scala3),
projectName := "ZIO FTP",
mainModuleName := (`zio-ftp` / moduleName).value,
projectStage := ProjectStage.ProductionReady,
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(`zio-ftp`),
docsPublishBranch := "series/2.x"
)
.dependsOn(`zio-ftp`)
.enablePlugins(WebsitePlugin)