-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
83 lines (75 loc) · 1.99 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.*
import MyUtils.*
ThisBuild / version := "0.0.2-SNAPSHOT"
ThisBuild / scalaVersion := "3.3.3"
ThisBuild / organization := "io.github.khanr1"
ThisBuild / crossScalaVersions := Seq("3.3.0", "2.12.18")
ThisBuild / publishTo := Some(
Resolver.file("Local Ivy", new File(Path.userHome.absolutePath + "/.ivy2/local"))
)
ThisBuild / publishMavenStyle := true
lazy val `scalaopenai` =
project
.in(file("."))
.aggregate(domain, core, client, main)
.dependsOn(domain, core, client, main)
.settings(
name := "scalaopenai"
)
lazy val domain =
project
.in(file("01-openAI-domain"))
.settings(testDependencies)
.settings(
name := "scalaopenai-domain",
libraryDependencies ++= Seq(
Libraries.cats.value,
Libraries.catsEffect.value,
Libraries.circe.value,
Libraries.circeParser.value
)
)
lazy val core =
project
.in(file("02-openAI-core"))
.dependsOn(domain % Cctt)
.settings(
name := "scalaopenai-core",
libraryDependencies ++= Seq(
Libraries.htt4sEmberClient.value,
Libraries.circeParser.value
)
)
lazy val client =
project
.in(file("03-openAI-client"))
.dependsOn(core % Cctt)
.settings(
name := "scalaopenai-client",
libraryDependencies ++= Seq(
Libraries.htt4sCirce.value,
Libraries.htt4sDsl.value,
Libraries.htt4sEmberClient.value,
Libraries.circeParser.value
)
)
lazy val main =
project
.in(file("04-openAI-main"))
.dependsOn(client % Cctt)
.settings(
name := "scalaopenai-main",
libraryDependencies ++= Seq(
Libraries.ciris
)
)
lazy val testDependencies = Seq(
testFrameworks += new TestFramework("weaver.framework.CatsEffect"),
libraryDependencies ++= Seq(
Libraries.weaverCats % Test,
Libraries.weaverDiscipline % Test,
Libraries.weaverScalaCheck % Test
)
)
addCommandAlias("run", "main/run")
addCommandAlias("reStart", "main/reStart")