-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
60 lines (53 loc) · 1.72 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
ThisBuild / organization := "dev.kovstas"
ThisBuild / scalaVersion := "2.13.15"
ThisBuild / crossScalaVersions := List("2.12.20", "2.13.15", "3.3.4")
ThisBuild / scalacOptions ++= scalaOptions(scalaVersion.value)
ThisBuild / libraryDependencies ++= Seq(
"co.fs2" %% "fs2-core" % "3.11.0",
"org.scalameta" %% "munit" % "1.0.2" % Test,
"org.typelevel" %% "cats-effect-testkit" % "3.5.7" % Test
)
lazy val root =
crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Pure)
.withoutSuffixFor(JVMPlatform)
.settings(
name := "fs2-throttler"
)
.in(file("."))
def scalaOptions(v: String) = {
val options = List(
"-Xfatal-warnings",
"-deprecation",
"-feature",
"-unchecked",
"-language:higherKinds"
)
CrossVersion.partialVersion(v) match {
case Some((3, _)) => options :+ "-source:3.0-migration"
case _ => options
}
}
enablePlugins(AutomateHeaderPlugin)
ThisBuild / startYear := Some(2021)
ThisBuild / organizationName := "Stanislav Kovalenko"
ThisBuild / homepage := Some(url("https://github.com/kovstas/fs2-throttler"))
ThisBuild / licenses := List("MIT" -> url("http://opensource.org/licenses/MIT"))
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/kovstas/fs2-throttler"),
"scm:[email protected]:kovstas/fs2-throttler.git"
)
)
ThisBuild / developers := List(
Developer(
id = "kovstas",
name = "Stanislav Kovalenko",
email = "[email protected]",
url = url("https://kovstas.dev")
)
)
ThisBuild / description := "Throttling for FS2 based on the Token bucket algorithm"
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / scalafmtOnCompile := true