-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
71 lines (66 loc) · 2.44 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
val catsV = "2.7.0"
val catsEffectV = "3.3.8"
val catsParseV = "0.3.6"
val enumeratumV = "1.7.0"
val caseInsensitiveV = "1.2.0"
val munitV = "0.7.29"
val munitCatsEffectV = "1.0.7"
val scalacheckEffectV = "1.0.3"
val log4j2V = "2.17.2"
val log4catsV = "2.2.0"
val fs2V = "3.2.5"
val apacheCommonsTextV = "1.9"
Global / onChangedBuildSource := ReloadOnSourceChanges
ThisBuild / scalaVersion := "2.13.8"
ThisBuild / organizationName := "Filippo De Luca"
ThisBuild / dynverSeparator := "-"
ThisBuild / evictionErrorLevel := Level.Warn
ThisBuild / organization := "com.github.filosganga"
ThisBuild / organizationHomepage := Some(url("https://filippodeluca.com"))
ThisBuild / homepage := Some(url("https://github.com/filosganga/handrail"))
ThisBuild / scmInfo := Some(
ScmInfo(url("https://github.com/filosganga/handrail"), "scm:git:[email protected]:filosganga/handrail.git")
)
ThisBuild / licenses := Seq("Apache-2.0" -> url("https://opensource.org/licenses/apache-2.0"))
ThisBuild / developers := List(
Developer("filippo.deluca", "Filippo De Luca", "[email protected]", url("https://filippodeluca.com"))
)
lazy val handrail = (project in file("."))
.settings(
name := "handrail",
description := "Handlebars parser in scala",
libraryDependencies ++= Seq(
"org.scalameta" %% "munit" % munitV % Test,
"org.scalameta" %% "munit-scalacheck" % munitV % Test,
"org.typelevel" %% "munit-cats-effect-3" % munitCatsEffectV % Test,
"org.typelevel" %% "scalacheck-effect-munit" % scalacheckEffectV % Test,
"com.beachape" %% "enumeratum" % enumeratumV,
"org.typelevel" %% "cats-core" % catsV,
"org.typelevel" %% "cats-effect" % catsEffectV,
"org.typelevel" %% "cats-parse" % catsParseV,
"co.fs2" %% "fs2-core" % fs2V,
"co.fs2" %% "fs2-io" % fs2V,
"org.typelevel" %% "log4cats-slf4j" % log4catsV,
"org.apache.commons" % "commons-text" % apacheCommonsTextV,
"org.apache.logging.log4j" % "log4j-slf4j-impl" % log4j2V % Test
)
)
lazy val benchmark = (project in file("benchmark"))
.dependsOn(handrail)
.enablePlugins(JmhPlugin)
.settings(
name := "handrail-benchmark",
libraryDependencies ++= List(
"com.github.jknack" % "handlebars" % "4.3.0"
)
)
lazy val docs = project
.enablePlugins(MdocPlugin, DocusaurusPlugin)
.in(file("handrail-docs"))
.dependsOn(handrail)
.settings(
moduleName := "handrail-docs",
mdocVariables := Map(
"VERSION" -> version.value
)
)