-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
89 lines (84 loc) · 2.28 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
77
78
79
80
81
82
83
84
85
86
87
88
89
import Dependencies._
val scalaVersion213 = "2.13.8"
val scalaVersion212 = "2.12.15"
val scalaVersion301 = "3.0.1"
val supportedScalaVersions = List(scalaVersion213)
ThisBuild / scalaVersion := scalaVersion213
ThisBuild / version := "4.0.0"
ThisBuild / organization := "io.github.ashwinbhaskar"
ThisBuild / organizationName := "redis.ratelimit"
ThisBuild / crossScalaVersions := supportedScalaVersions
lazy val commonSettings = Seq(
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
),
homepage := Some(
url("https://github.com/ashwinbhaskar/redisclient-rate-limit")
),
developers := List(
Developer(
"ashwinbhaskar",
"Ashwin Bhaskar",
url("https://github.com/ashwinbhaskar")
)
),
scmInfo := Some(
ScmInfo(
url("https://github.com/ashwinbhaskar/redisclient-rate-limit"),
"scm:[email protected]:ashwinbhaskar/redisclient-rate-limit.git"
)
),
licenses += (
"Apache-2.0",
url("http://www.apache.org/licenses/LICENSE-2.0")
),
publishMavenStyle := true,
// Add sonatype repository settings
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
),
scalaVersion := scalaVersion213,
version := "4.0.0",
organization := "io.github.ashwinbhaskar",
organizationName := "redis.ratelimit",
crossScalaVersions := supportedScalaVersions
)
lazy val common = (project in file("common"))
.settings(
name := "redis-rate-limit-common",
scalacOptions ~= (_.filterNot(Set("-Xfatal-warnings"))),
libraryDependencies ++= Seq(
L.redisClient
)
).settings(commonSettings)
lazy val catsEffect = (project in file("cats-effect"))
.settings(
name := "redis-rate-limit-ce",
libraryDependencies ++= Seq(
L.catsEffect,
T.scalaTest,
T.testContainer
)
)
.settings(commonSettings)
.dependsOn(common)
lazy val zio = (project in file("zio"))
.settings(
name := "redis-rate-limit-zio",
libraryDependencies ++= Seq(
L.zio,
T.zioTest,
T.zioTestSbt,
T.testContainer
),
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
)
.settings(commonSettings)
.dependsOn(common)