This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.sbt
92 lines (86 loc) · 3.24 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
90
91
92
import BuildHelper._
inThisBuild(
List(
organization := "dev.zio",
homepage := Some(url("https://zio.dev/zio-openai/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"jdegoes",
"John De Goes",
url("http://degoes.net")
),
Developer(
"vigoo",
"Daniel Vigovszky",
url("https://vigoo.github.io/")
)
),
resolvers +=
"Sonatype OSS Snapshots 01" at "https://s01.oss.sonatype.org/content/repositories/snapshots",
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray),
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc"),
resolvers +=
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
)
)
addCommandAlias("fmt", "all scalafmtSbt scalafmtAll")
addCommandAlias(
"check",
"; scalafmtSbtCheck; scalafmtCheckAll"
)
lazy val root = (project in file("."))
.settings(
name := "zio-openai",
publish / skip := true,
crossScalaVersions := Nil
)
.aggregate(zioOpenAI, examples, docs)
lazy val zioOpenAI = Project("zio-openai", file("zio-openai"))
.settings(stdSettings("zio-openai"))
.settings(dottySettings)
.settings(buildInfoSettings("zio.openai"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % Dependencies.zio,
"dev.zio" %% "zio-http" % Dependencies.zioHttp,
"dev.zio" %% "zio-json" % Dependencies.zioJson,
"dev.zio" %% "zio-nio" % Dependencies.zioNio,
"dev.zio" %% "zio-prelude" % Dependencies.zioPrelude,
"dev.zio" %% "zio-schema" % Dependencies.zioSchema,
"dev.zio" %% "zio-schema-json" % Dependencies.zioSchema,
"dev.zio" %% "zio-schema-derivation" % Dependencies.zioSchema,
"dev.zio" %% "zio-test" % Dependencies.zio % Test,
"dev.zio" %% "zio-test-sbt" % Dependencies.zio % Test
),
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework")
)
.enablePlugins(ZioOpenAICodegenPlugin)
lazy val examples = Project("zio-openai-examples", file("zio-openai-examples"))
.settings(stdSettings("zio-openai-examples"))
.settings(dottySettings)
.settings(
publish / skip := true,
scalacOptions += "-Wconf:cat=deprecation:s"
)
.dependsOn(zioOpenAI)
lazy val docs = project
.in(file("zio-openai-docs"))
.settings(stdSettings("zio-openai"))
.settings(macroDefinitionSettings)
.settings(
scalaVersion := Scala213,
publish / skip := true,
moduleName := "zio-openai-docs",
scalacOptions -= "-Yno-imports",
scalacOptions -= "-Xfatal-warnings",
projectName := "ZIO OpenAI",
mainModuleName := (zioOpenAI / moduleName).value,
projectStage := ProjectStage.ProductionReady,
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(zioOpenAI)
)
.dependsOn(zioOpenAI)
.enablePlugins(WebsitePlugin)