This repository has been archived by the owner on Dec 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
83 lines (77 loc) · 2.2 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
import Dependencies._
inThisBuild(
Seq(
scalaVersion := scala212,
organization := "dev.zio",
homepage := Some(url("https://github.com/zio/zio-shield")),
licenses := Seq(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc"),
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray),
scmInfo := Some(
ScmInfo(url("https://github.com/zio/zio-shield/"), "scm:git:[email protected]:zio/zio-shield.git")
),
developers := List(
Developer(
"vovapolu",
"Vladimir Polushin",
url("https://github.com/vovapolu")
)
)
)
)
ThisBuild / publishTo := sonatypePublishToBundle.value
lazy val shieldApi = (project in file("shield-api"))
.enablePlugins(GitVersioning)
.settings(
name := "zio-shield-api",
libraryDependencies ++= Seq(
scalafixCore,
scalafixRules,
scaluzzi,
circeCore,
circeGeneric,
circeGenericExtras,
circeYaml,
utest % "test"
),
testFrameworks += new TestFramework("utest.runner.Framework")
)
lazy val shieldSbt = (project in file("shield-sbt"))
.enablePlugins(SbtPlugin)
.enablePlugins(GitVersioning)
.dependsOn(shieldApi)
.settings(
name := "zio-shield",
scriptedBufferLog := false,
scriptedLaunchOpts ++= Seq(
"-Xmx2048M",
s"-Dplugin.version=${version.value}"
)
)
lazy val shieldTests = (project in file("shield-tests"))
.dependsOn(shieldApi) // for direct semantic document loading
.settings(
name := "zio-shield-tests",
skip in publish := true,
libraryDependencies ++= Seq(
utest % "test",
zio % "test",
zioStreams % "test",
compilerPlugin(
"org.scalameta" % "semanticdb-scalac" % "4.2.3" cross CrossVersion.full)
),
scalacOptions += "-Yrangepos",
testFrameworks += new TestFramework("utest.runner.Framework")
)
lazy val shieldDetector = (project in file("shield-detector"))
.settings(
name := "zio-shield-detector",
skip in publish := true,
libraryDependencies ++= Seq(
"org.reflections" % "reflections" % "0.9.11"
)
)