-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
77 lines (70 loc) · 2.1 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
import Dependencies._
enablePlugins(GitVersioning)
ThisBuild / organization := "org.constellation"
ThisBuild / scalaVersion := "2.13.10"
ThisBuild / scalafixDependencies += Libraries.organizeImports
ThisBuild / evictionErrorLevel := Level.Warn
githubTokenSource := (TokenSource.GitConfig("github.token") || TokenSource.Environment("GITHUB_TOKEN"))
git.useGitDescribe := true
ThisBuild / assemblyMergeStrategy := {
case "logback.xml" => MergeStrategy.first
case PathList(xs @ _*) if xs.last == "module-info.class" => MergeStrategy.first
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
}
lazy val testSettings = Seq(
testFrameworks += new TestFramework("weaver.framework.CatsEffect"),
libraryDependencies ++= Seq(
Libraries.catsEffectTestKit,
Libraries.weaverCats,
Libraries.weaverScalaCheck
).map(_ % Test)
)
lazy val commonSettings = Seq(
scalacOptions ++= List(
"-Ymacro-annotations",
"-Yrangepos",
"-Wconf:cat=unused:info",
"-language:reflectiveCalls",
"-Ywarn-unused",
"-deprecation"
),
resolvers ++= List(
Resolver.sonatypeRepo("snapshots"),
Resolver.githubPackages("abankowski", "http-request-signer"),
Resolver.mavenLocal
)
)
lazy val core = (project in file("."))
.settings(
name := "cl-snapshot-streaming",
commonSettings,
testSettings,
libraryDependencies ++= Seq(
Libraries.awss3,
Libraries.catsCore,
Libraries.catsKernel,
Libraries.catsEffect,
Libraries.circeCore,
Libraries.circeGeneric,
Libraries.derevoCirce,
Libraries.derevoScalacheck,
Libraries.config,
Libraries.elasticCirce,
Libraries.elasticClient,
Libraries.elasticCore,
Libraries.catsCore,
Libraries.fs2Core,
Libraries.fs2Io,
Libraries.guava,
Libraries.http4sCirce,
Libraries.http4sClient,
Libraries.http4sDsl,
Libraries.log4cats,
Libraries.logback % Runtime,
Libraries.logstash % Runtime,
Libraries.tessellationSdk,
Libraries.tessellationShared
)
)