-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.sbt
76 lines (65 loc) · 2.02 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
inThisBuild(
List(
organization := "in.rcard.raise4s",
homepage := Some(url("https://github.com/rcardin")),
// Alternatively License.Apache2 see https://github.com/sbt/librarymanagement/blob/develop/core/src/main/scala/sbt/librarymanagement/License.scala
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"rcardin",
"Riccardo Cardin",
"riccardo DOT cardin AT gmail.com",
url("https://github.com/rcardin/raise4s")
)
)
)
)
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
sonatypeProfileName := "in.rcard"
name := "raise4s"
//version := "0.0.1-SNAPSHOT"
val scala3Version = "3.6.2"
scalaVersion := scala3Version
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.19" % Test
)
lazy val core = project
.settings(
name := "core",
scalaVersion := scala3Version,
libraryDependencies ++= commonDependencies
)
lazy val `cats-raise4s` = project
.dependsOn(core)
.settings(
name := "cats-raise4s",
scalaVersion := scala3Version,
libraryDependencies ++= commonDependencies ++ `cats-raise4sDependencies`
)
lazy val `munit-raise4s` = project
.dependsOn(core)
.settings(
name := "munit-raise4s",
scalaVersion := scala3Version,
libraryDependencies ++= commonDependencies ++ `munit-raise4sDependencies`
)
lazy val raise4s = (project in file("."))
.aggregate(core, `cats-raise4s`)
.settings(
scalaVersion := scala3Version
)
lazy val dependencies =
new {
val scalatestVersion = "3.2.19"
val scalatest = "org.scalatest" %% "scalatest" % scalatestVersion
}
lazy val commonDependencies = Seq(
dependencies.scalatest % Test
)
lazy val `cats-raise4sDependencies` = Seq(
"org.typelevel" %% "cats-core" % "2.12.0"
)
lazy val `munit-raise4sDependencies` = Seq(
"org.scalameta" %% "munit" % "1.0.4"
)