-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.sbt
60 lines (54 loc) · 1.55 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
import Dependencies._
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
inThisBuild(
Seq(
organization := "io.iohk.atala",
scalaVersion := "3.2.0",
fork := true,
run / connectInput := true,
versionScheme := Some("semver-spec"),
githubOwner := "input-output-hk",
githubRepository := "atala-prism-building-blocks",
githubTokenSource := TokenSource.Environment("ATALA_GITHUB_TOKEN")
)
)
val commonSettings = Seq(
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework")),
githubTokenSource := TokenSource.Environment("ATALA_GITHUB_TOKEN"),
resolvers += Resolver.githubPackages("input-output-hk"),
// Needed for Kotlin coroutines that support new memory management mode
resolvers += "JetBrains Space Maven Repository" at "https://maven.pkg.jetbrains.space/public/p/kotlinx-coroutines/maven"
)
// Project definitions
lazy val root = project
.in(file("."))
.settings(
skip / publish := true,
commonSettings
)
.aggregate(core, `sql-doobie`)
lazy val core = project
.in(file("core"))
.settings(commonSettings)
.settings(
name := "castor-core",
libraryDependencies ++= coreDependencies
)
lazy val `sql-doobie` = project
.in(file("sql-doobie"))
.settings(commonSettings)
.settings(
name := "castor-sql-doobie",
libraryDependencies ++= sqlDoobieDependencies
)
.dependsOn(core)
// ### ReleaseStep ###
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
publishArtifacts,
setNextVersion
)