-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
76 lines (73 loc) · 2.93 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
import sbt._
lazy val commonSettings = Seq(
assemblyMergeStrategy in assembly := {
case PathList(ps @ _*) if ps.last endsWith ".properties" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".xml" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".types" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".class" => MergeStrategy.first
case "application.conf" => MergeStrategy.concat
case "unwanted.txt" => MergeStrategy.discard
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
},
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.3",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.2",
"org.jsoup" % "jsoup" % "1.12.1",
"com.beachape" %% "enumeratum" % "1.5.13",
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "cats-free" % catsVersion,
"org.typelevel" %% "cats-effect" % catsVersion,
"com.vladkopanev" %% "cats-saga" % "0.2.3",
"com.github.finagle" %% "finchx-core" % finchVersion,
"com.twitter" %% "finagle-core" % finagleVersion,
"com.twitter" %% "finagle-http" % finagleVersion,
"com.twitter" %% "twitter-server" % finagleVersion,
"com.twitter" %% "util-core" % finagleVersion,
"com.github.finagle" %% "finchx-circe" % finchVersion,
"com.softwaremill.macwire" %% "macros" % macwireVersion % "provided",
"com.softwaremill.macwire" %% "macrosakka" % macwireVersion % "provided",
"com.softwaremill.macwire" %% "util" % macwireVersion,
"com.softwaremill.macwire" %% "proxy" % macwireVersion,
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"com.github.pathikrit" %% "better-files" % "3.7.1",
"com.beachape" %% "enumeratum" % "1.5.13",
"org.scalactic" %% "scalactic" % "3.0.5",
"org.scalatest" %% "scalatest" % "3.0.5",
"org.scalacheck" %% "scalacheck" % "1.14.0",
"org.mockito" % "mockito-core" % "2.7.22",
"org.scalamock" %% "scalamock-scalatest-support" % "3.6.0",
"com.github.scopt" %% "scopt" % "3.7.1",
),
test in assembly := {}
)
lazy val catsVersion = "2.0.0"
lazy val circeVersion = "0.10.0"
lazy val finagleVersion = "20.1.0"
lazy val finchVersion = "0.31.0"
lazy val macwireVersion = "2.3.1"
lazy val godfather = (project in file("."))
.settings(
commonSettings,
inThisBuild(
List(
name := "godfather",
version := "0.1-SNAPSHOT",
assemblyJarName := "godfather.jar",
organization := "com.github.cndjp",
scalaVersion := "2.12.8",
scalacOptions := Seq(
"-deprecation",
"-feature",
"-unchecked",
"-Ypartial-unification",
"-Xfatal-warnings",
"-language:higherKinds",
"-target:jvm-1.8"
)
)
)
)