-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
65 lines (54 loc) · 3.01 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
name := "code-examples-manager"
organization := "fr.janalyse"
description := "Tool to manage set of code examples : synchronize and publish, automated execution, ..."
licenses += "NON-AI-APACHE2" -> url(s"https://github.com/non-ai-licenses/non-ai-licenses/blob/main/NON-AI-APACHE2")
scalaVersion := "3.5.1"
scalacOptions += "-Xkind-projector:underscores"
lazy val versions = new {
val sttp = "3.9.8"
val zio = "2.1.9"
val zionio = "2.0.2"
val zioproc = "0.7.2"
val zioconfig = "4.0.2"
val ziologging = "2.3.1"
val ziolmdb = "1.8.1"
val naturalsort = "1.0.4"
val jgit = "7.0.0.202409031743-r"
}
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % versions.zio,
"dev.zio" %% "zio-test" % versions.zio % Test,
"dev.zio" %% "zio-test-junit" % versions.zio % Test,
"dev.zio" %% "zio-test-sbt" % versions.zio % Test,
"dev.zio" %% "zio-test-scalacheck" % versions.zio % Test,
"dev.zio" %% "zio-streams" % versions.zio,
"dev.zio" %% "zio-nio" % versions.zionio,
"dev.zio" %% "zio-process" % versions.zioproc,
"dev.zio" %% "zio-logging" % versions.ziologging,
"dev.zio" %% "zio-logging-slf4j-bridge" % versions.ziologging,
"dev.zio" %% "zio-config" % versions.zioconfig,
"dev.zio" %% "zio-config-typesafe" % versions.zioconfig,
"dev.zio" %% "zio-config-magnolia" % versions.zioconfig,
"fr.janalyse" %% "zio-lmdb" % versions.ziolmdb,
"com.softwaremill.sttp.client3" %% "async-http-client-backend-zio" % versions.sttp,
"com.softwaremill.sttp.client3" %% "zio-json" % versions.sttp,
"fr.janalyse" %% "naturalsort" % versions.naturalsort,
"org.eclipse.jgit" % "org.eclipse.jgit" % versions.jgit
)
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework")
TwirlKeys.templateImports += "fr.janalyse.cem.model._"
mainClass := Some("fr.janalyse.cem.Main")
// ZIO-LMDB requires special authorization at JVM level
ThisBuild / fork := true
ThisBuild / javaOptions ++= Seq("--add-opens", "java.base/java.nio=ALL-UNNAMED", "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED")
enablePlugins(SbtTwirl)
homepage := Some(url("https://github.com/dacr/code-examples-manager"))
scmInfo := Some(ScmInfo(url(s"https://github.com/dacr/code-examples-manager.git"), s"git@github.com:dacr/code-examples-manager.git"))
developers := List(
Developer(
id = "dacr",
name = "David Crosson",
email = "crosson.david@gmail.com",
url = url("https://github.com/dacr")
)
)