-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
55 lines (49 loc) · 1.6 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
import Dependencies._
Global / onChangedBuildSource := ReloadOnSourceChanges
Global / excludeLintKeys := Set(idePackagePrefix)
ThisBuild / scalaVersion := "3.2.2"
ThisBuild / scalafixDependencies ++= Seq(
"com.github.liancheng" %% "organize-imports" % "0.6.0",
"io.github.ghostbuster91.scalafix-unified" %% "unified" % "0.0.8",
"net.pixiv" %% "scalafix-pixiv-rule" % "4.1.0"
)
ThisBuild / idePackagePrefix := Some("io.github.pervasivecats")
lazy val root = project
.in(file("."))
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "toys-store",
scalacOptions ++= Seq(
"-deprecation",
"-Xfatal-warnings"
),
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
libraryDependencies ++= Seq(
akka,
akkaStream,
akkaHttp,
akkaHttpSprayJson,
ditto,
postgresql,
quill
),
wartremoverErrors ++= Warts.allBut(Wart.ImplicitParameter),
version := "1.1.0",
headerLicense := Some(
HeaderLicense.Custom(
"""|Copyright © 2022-2023 by Pervasive Cats S.r.l.s.
|
|All Rights Reserved.
|""".stripMargin
)
),
assembly / assemblyJarName := "main.jar",
assembly / mainClass := Some("io.github.pervasivecats.demo.main"),
assembly / assemblyMergeStrategy := {
case PathList("io", "getquill", _*) => MergeStrategy.first
case PathList("META-INF", "annotations", _*) => MergeStrategy.filterDistinctLines
case PathList("META-INF", "NOTICE-THIRD-PARTY.md") => MergeStrategy.first
case v => MergeStrategy.defaultMergeStrategy(v)
}
)