-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
47 lines (41 loc) · 1.61 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
val scalusVersion = "0.8.4"
// Latest Scala 3 LTS version
ThisBuild / scalaVersion := "3.3.4"
ThisBuild / scalacOptions ++= Seq("-feature", "-deprecation", "-unchecked")
// Add the Scalus compiler plugin
addCompilerPlugin("org.scalus" %% "scalus-plugin" % scalusVersion)
// Test dependencies
ThisBuild / testFrameworks += new TestFramework("munit.Framework")
// Main application
lazy val core = (project in file("."))
.settings(
libraryDependencies ++= Seq(
// Scalus
"org.scalus" % "scalus_3" % scalusVersion,
"org.scalus" % "scalus-bloxbean-cardano-client-lib_3" % scalusVersion,
// Cardano Client library
"com.bloxbean.cardano" % "cardano-client-lib" % "0.6.3",
"com.bloxbean.cardano" % "cardano-client-backend-blockfrost" % "0.6.3",
// Tapir for API definition
"com.softwaremill.sttp.tapir" %% "tapir-netty-server-sync" % "1.11.11",
"com.softwaremill.sttp.tapir" %% "tapir-swagger-ui-bundle" % "1.11.11",
// Argument parsing
"com.monovore" %% "decline" % "2.5.0",
"org.slf4j" % "slf4j-simple" % "2.0.16"
),
libraryDependencies ++= Seq(
"org.scalameta" %% "munit" % "1.0.3" % Test,
"org.scalameta" %% "munit-scalacheck" % "1.0.0" % Test,
"org.scalacheck" %% "scalacheck" % "1.18.1" % Test
)
)
// Integration tests
lazy val integration = (project in file("integration"))
.dependsOn(core) // your current subproject
.settings(
publish / skip := true,
// test dependencies
libraryDependencies ++= Seq(
"org.scalameta" %% "munit" % "1.0.3" % Test
)
)