generated from a-khakimov/tg-bot-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
100 lines (86 loc) · 2.55 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
90
91
92
93
94
95
96
97
98
99
100
import sbtbuildinfo.BuildInfoKeys
Global / onChangedBuildSource := ReloadOnSourceChanges
ThisBuild / scalaVersion := "2.13.10"
lazy val root = (project in file("."))
.enablePlugins(BuildInfoPlugin)
.enablePlugins(GitVersioning)
.settings(
name := "Undicator",
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" }
},
BuildInfoKey.action("github") {
"https://github.com/a-khakimov/undicator"
}
),
scalacOptions ++= Seq(
"-language:postfixOps",
"-language:implicitConversions",
"-feature"
),
buildInfoPackage := "org.github.ainr"
)
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" % "3.3.14")
val ciris = Seq("is.cir" %% "ciris" % "2.4.0")
val cirisHocon = Seq("lt.dvim.ciris-hocon" %% "ciris-hocon" % "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",
"org.typelevel" %% "log4cats-slf4j"
).map(_ % "2.4.0")
val circe = Seq(
"io.circe" %% "circe-core",
"io.circe" %% "circe-parser",
"io.circe" %% "circe-generic"
).map(_ % "0.14.1")
val scaffeine = Seq("com.github.blemale" %% "scaffeine" % "5.2.1")
val nspl = Seq("io.github.pityka" %% "nspl-awt" % "0.6.0")
val flyway = Seq("org.flywaydb" % "flyway-core" % "8.5.9")
val doobie = Seq(
"org.tpolecat" %% "doobie-postgres",
"org.tpolecat" %% "doobie-hikari",
"org.tpolecat" %% "doobie-refined"
).map(_ % "1.0.0-RC2")
val refined = Seq(
"eu.timepit" %% "refined",
"eu.timepit" %% "refined-cats"
).map(_ % "0.10.1")
Seq(
telegramium,
catsEffect,
ciris,
cirisHocon,
slf4j,
log4cats,
sourcecode,
circe,
scaffeine,
nspl,
refined,
flyway,
doobie
).flatten
}
ThisBuild / assemblyMergeStrategy := {
case PathList("org", "slf4j", xs @ _*) => MergeStrategy.first
case x => (ThisBuild / assemblyMergeStrategy).value(x)
}