-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
56 lines (51 loc) · 2.67 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
name := "Scala-IRC-bot"
ThisBuild / version := "1.3.2"
scalaVersion := "3.4.2"
scalacOptions ++= Seq(
"-deprecation", // Emit warning and location for usages of deprecated APIs.
"-encoding",
"utf-8", // Specify character encoding used by source files.
"-explain-types", // Explain type errors in more detail.
"-feature", // Emit warning and location for usages of features that should be imported explicitly.
"-language:existentials", // Existential types (besides wildcard types) can be written and inferred
"-language:experimental.macros", // Allow macro definition (besides implementation and application)
"-language:higherKinds", // Allow higher-kinded types
"-language:implicitConversions", // Allow definition of implicit functions called views
"-unchecked", // Enable additional warnings where generated code depends on assumptions.
"-Xfatal-warnings", // Fail the compilation if there are any warnings.
"-Wconf:all=error",
"-Xmax-inlines", "50"
)
val circeV = "0.14.8"
val sttpClientV = "3.9.7"
lazy val ircBot = project.in(file("."))
.settings(
resolvers += "jitpack" at "https://jitpack.io",
libraryDependencies ++= Seq(
// Use snapshot because pircbotx releases are few and far between.
"com.github.pircbotx" % "pircbotx" % "2.3.1",
"com.github.pureconfig" %% "pureconfig-core" % "0.17.7",
"ch.qos.logback" % "logback-classic" % "1.5.6",
"io.circe" %% "circe-core" % circeV,
"io.circe" %% "circe-generic" % circeV,
"io.circe" %% "circe-parser" % circeV,
"com.softwaremill.sttp.client3" %% "core" % sttpClientV,
"com.softwaremill.sttp.client3" %% "fs2" % sttpClientV,
"com.softwaremill.sttp.client3" %% "circe" % sttpClientV,
"org.apache.commons" % "commons-text" % "1.12.0",
"com.google.api-client" % "google-api-client" % "2.6.0",
"com.google.apis" % "google-api-services-youtube" % "v3-rev20240514-2.0.0",
"org.scalatest" %% "scalatest" % "3.2.19" % "test",
),
)
.settings(assembly / test := {})
.settings(assembly / mainClass := Some("codes.co2.ircbot.pircbotx.Main"))
.settings(assembly / assemblyMergeStrategy := {
str: String =>
if (str.endsWith("module-info.class")) {
MergeStrategy.discard
} else {
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(str)
}
})