forked from zio/zio-direct
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
87 lines (80 loc) · 2.49 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
import BuildHelper._
import Dependencies._
inThisBuild(
List(
organization := "dev.zio",
homepage := Some(url("https://zio.github.io/zio-direct/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"deusaquilus",
"Alexander Ioffe",
url("https://github.com/deusaquilus")
)
),
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray),
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc")
)
)
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("fix", "; all compile:scalafix test:scalafix; all scalafmtSbt scalafmtAll")
addCommandAlias("check", "; scalafmtSbtCheck; scalafmtCheckAll; compile:scalafix --check; test:scalafix --check")
addCommandAlias(
"testJVM",
";zio-direct/test"
)
lazy val root = (project in file("."))
.aggregate(
`zio-direct`,
docs
)
.settings(
crossScalaVersions := Nil,
publish / skip := true
)
lazy val `zio-direct` = project
.in(file("zio-direct"))
.settings(stdSettings("zio-direct"))
.settings(crossProjectSettings)
.settings(dottySettings)
.settings(buildInfoSettings("zio.direct"))
.enablePlugins(BuildInfoPlugin)
.settings(
Test / classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat,
scalaVersion := ScalaDotty,
resolvers ++= Seq(
Resolver.mavenLocal,
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
"Sonatype OSS Releases" at "https://oss.sonatype.org/content/repositories/releases"
),
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
libraryDependencies ++= Seq(
pprint,
zio,
`quill-util`,
`zio-test`,
`zio-test-sbt`
)
)
lazy val docs = project
.in(file("zio-direct-docs"))
.settings(stdSettings("zio-direct"))
.settings(macroDefinitionSettings)
.settings(
excludeDependencies ++= Seq(
"com.geirsson" % "metaconfig-core_2.13",
"com.geirsson" % "metaconfig-typesafe-config_2.13",
"org.typelevel" % "paiges-core_2.13"
),
crossScalaVersions := Seq(ScalaDotty),
scalaVersion := ScalaDotty,
publish / skip := true,
moduleName := "zio-direct-docs",
scalacOptions -= "-Yno-imports",
scalacOptions -= "-Xfatal-warnings"
)
.dependsOn(`zio-direct`)
.enablePlugins(WebsitePlugin)
addCommandAlias("fmt", "all scalafmt test:scalafmt")