-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
65 lines (57 loc) · 1.8 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
import sbtbuildinfo.BuildInfoKeys
Global / onChangedBuildSource := ReloadOnSourceChanges
ThisBuild / scalaVersion := "2.13.10"
lazy val root = (project in file("."))
.enablePlugins(BuildInfoPlugin)
.enablePlugins(GitVersioning)
.settings(
name := "TelegramBot-Template",
organization := "org.github.ainr",
version := "0.0.1",
assembly / assemblyJarName := "App.jar",
assembly / logLevel := Level.Info,
buildInfoKeys ++= Seq[BuildInfoKey](
name,
version,
scalaVersion,
sbtVersion,
resolvers,
BuildInfoKey.action("buildTime") {
System.currentTimeMillis
},
BuildInfoKey.action("gitHeadCommit") {
git.gitHeadCommit.value map { sha => s"v$sha" }
}
),
scalacOptions ++= Seq(
"-language:postfixOps"
)
)
libraryDependencies ++= {
val telegramium = Seq(
"io.github.apimorphism" %% "telegramium-core",
"io.github.apimorphism" %% "telegramium-high"
).map(_ % "7.62.0")
val catsEffect = Seq("org.typelevel" %% "cats-effect").map(_ % "3.3.14")
val ciris = Seq("is.cir" %% "ciris").map(_ % "2.4.0")
val cirisHocon = Seq("lt.dvim.ciris-hocon" %% "ciris-hocon").map(_ % "1.0.1")
val sourcecode = Seq("com.lihaoyi" %% "sourcecode" % "0.3.0")
val slf4j = Seq("org.slf4j" % "slf4j-api" % "1.7.36")
val log4cats = Seq(
"org.typelevel" %% "log4cats-core", // Only if you want to Support Any Backend
"org.typelevel" %% "log4cats-slf4j" // Direct Slf4j Support - Recommended
).map(_ % "2.4.0")
Seq(
telegramium,
catsEffect,
ciris,
cirisHocon,
slf4j,
log4cats,
sourcecode
).flatten
}
ThisBuild / assemblyMergeStrategy := {
case PathList("org", "slf4j", xs @ _*) => MergeStrategy.first
case x => (ThisBuild / assemblyMergeStrategy).value(x)
}