-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.sbt
69 lines (62 loc) · 2.33 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
lazy val V = new {
val ociSdk = "3.53.1"
val scala213 = "2.13.15"
val scala3 = "3.3.4"
val `zio-nio` = "2.0.2"
}
lazy val D = new {
val objectStorage = "com.oracle.oci.sdk" % "oci-java-sdk-objectstorage" % V.ociSdk
val `zio-nio` = "dev.zio" %% "zio-nio" % V.`zio-nio`
val `httpclient-jersey` = "com.oracle.oci.sdk" % "oci-java-sdk-common-httpclient-jersey" % V.ociSdk % Test
}
enablePlugins(ZioSbtEcosystemPlugin)
inThisBuild(
Seq(
name := "ZIO OCI ObjectStorage",
zioVersion := "2.1.12",
organization := "io.laserdisc",
scalaVersion := V.scala213,
crossScalaVersions := Seq(V.scala213, V.scala3),
homepage := Some(url("https://github.com/laserdisc-io/zio-oci-objectstorage")),
licenses += "MIT" -> url("http://opensource.org/licenses/MIT"),
developers += Developer("amir", "Amir Saeid", "[email protected]", url("https://github.com/amir"))
)
)
lazy val testkit = project
.in(file("testkit"))
.settings(enableZIO(enableStreaming = true))
.settings(
name := "zio-oci-objectstorage-testkit",
libraryDependencies ++= D.objectStorage :: D.`zio-nio` :: Nil
)
.dependsOn(core)
lazy val core = project
.in(file("core"))
.settings(enableZIO(enableStreaming = true))
.settings(
name := "zio-oci-objectstorage",
libraryDependencies ++= D.objectStorage :: D.`httpclient-jersey` :: Nil
)
lazy val `integration-tests` = project
.in(file("it"))
.settings(enableZIO(enableStreaming = true))
.settings(
name := "zio-oci-objectstorage-it",
libraryDependencies ++= D.objectStorage :: D.`httpclient-jersey` :: Nil,
publish / skip := true
)
.dependsOn(core)
lazy val root = project
.in(file("."))
.aggregate(core, `integration-tests`, testkit)
.settings(
publish / skip := true,
addCommandAlias("fmtCheck", ";scalafmtCheckAll;scalafmtSbtCheck"),
addCommandAlias("fmt", ";scalafmtAll;scalafmtSbt;Test/scalafmtAll"),
addCommandAlias("fullTest", ";clean;test"),
addCommandAlias(
"setReleaseOptions",
"set scalacOptions ++= Seq(\"-opt:l:method\", \"-opt:l:inline\", \"-opt-inline-from:laserdisc.**\", \"-opt-inline-from:<sources>\")"
),
addCommandAlias("releaseIt", ";clean;setReleaseOptions;session list;compile;ci-release")
)