forked from ant8e/uuid4cats-effect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
89 lines (84 loc) · 3.11 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
enablePlugins(
ZioSbtEcosystemPlugin,
ZioSbtCiPlugin,
)
inThisBuild(
List(
name := "zio-uuid",
organization := "com.guizmaii",
homepage := Some(url("https://github.com/guizmaii-opensource/zio-uuid")),
zioVersion := "2.1.15",
scala213 := "2.13.16",
scala3 := "3.3.5",
crossScalaVersions -= scala212.value,
ciEnabledBranches := Seq("main"),
ciPostReleaseJobs := Seq.empty,
Test / parallelExecution := false,
Test / fork := true,
run / fork := true,
ciJvmOptions ++= Seq("-Xms6G", "-Xmx6G", "-Xss4M", "-XX:+UseG1GC"),
scalafixDependencies ++= List(
"com.github.vovapolu" %% "scaluzzi" % "0.1.23",
"io.github.ghostbuster91.scalafix-unified" %% "unified" % "0.0.9",
),
licenses := Seq(License.Apache2),
developers := List(
Developer(
"ant8e",
"Antoine Comte",
"",
url("https://github.com/ant8e"),
),
Developer(
"guizmaii",
"Jules Ivanic",
"",
url("https://github.com/guizmaii"),
),
),
)
)
addCommandAlias("updateReadme", "reload;docs/generateReadme")
lazy val root =
project
.in(file("."))
.settings(
name := "zio-uuid",
publish / skip := true,
crossScalaVersions := Nil, // https://www.scala-sbt.org/1.x/docs/Cross-Build.html#Cross+building+a+project+statefully
)
.aggregate(
`zio-uuid`
)
lazy val `zio-uuid` =
project
.in(file("zio-uuid"))
.settings(stdSettings(Some("zio-uuid")))
.settings(addOptionsOn("2.13")("-Xsource:3"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %%% "zio" % zioVersion.value,
"dev.zio" %% "zio-prelude" % "1.0.0-RC39",
"dev.zio" %%% "zio-json" % "0.7.18" % Optional,
"dev.zio" %%% "zio-test" % zioVersion.value % Test,
"org.scalameta" %%% "munit" % "1.1.0" % Test,
"com.github.poslegm" %% "munit-zio" % "0.3.0" % Test,
)
)
lazy val docs =
project
.in(file("zio-uuid-docs"))
.settings(
moduleName := "zio-uuid-docs",
scalacOptions -= "-Yno-imports",
scalacOptions -= "-Xfatal-warnings",
projectName := "zio-uuid",
mainModuleName := (`zio-uuid` / moduleName).value,
projectStage := ProjectStage.ProductionReady,
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(`zio-uuid`),
readmeCredits :=
"This library is a fork of the [uuid4cats-effect](https://github.com/ant8e/uuid4cats-effect) library made by Antoine Comte (https://github.com/ant8e)",
readmeLicense += s"\n\nCopyright 2023-${java.time.Year.now()} Jules Ivanic and the zio-uuid contributors.",
)
.enablePlugins(WebsitePlugin)
.dependsOn(`zio-uuid`)