-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
59 lines (51 loc) · 1.87 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
import Dependencies._
val scala213 = "2.13.9"
val scala3 = "3.2.0"
ThisBuild / organization := "io.soujiro32167"
ThisBuild / scalaVersion := scala213
ThisBuild / description := "A ZIP compression lib for ZIO"
ThisBuild / licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
ThisBuild / developers := List(
Developer("soujiro32167", "Eli Kasik", "[email protected]", url("https://github.com/soujiro32167"))
)
ThisBuild / resolvers += "jitpack" at "https://jitpack.io"
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
def commonSettings = List(
scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, _)) => List("-Xsource:3")
case Some((3, _)) => List("-Ycheck-all-patmat", "-explain")
case _ => Nil
}
},
scalacOptions -= "-Xlint:infer-any", // zio.Schedule compositions infer some types as Any
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
)
lazy val `zio1-zip-core` = (project in file("zio1-zip-core"))
.settings(commonSettings)
.settings(
name := "zio1-zip",
libraryDependencies ++= Seq(
`dev.zio`.zio1.zio,
`dev.zio`.zio1.test,
`dev.zio`.zio1.`test-sbt`,
`dev.zio`.zio1.`zio-streams`
),
crossScalaVersions := Seq(scala213, scala3)
)
lazy val `zio-zip-core` = (project in file("zio-zip-core"))
.settings(commonSettings)
.settings(
name := "zio-zip",
libraryDependencies ++= Seq(
`dev.zio`.zio.zio,
`dev.zio`.zio.test,
`dev.zio`.zio.`test-sbt`,
`dev.zio`.zio.`zio-streams`
),
crossScalaVersions := Seq(scala213, scala3)
)
lazy val `zio-zip` = (project in file("."))
.aggregate(`zio1-zip-core`, `zio-zip-core`)
.settings(publish / skip := true, crossScalaVersions := Nil)