forked from PhoenixErgo/phoenix
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
84 lines (71 loc) · 3.3 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
scalaVersion := "2.12.16"
name := "greaseFire"
organization := "app.phoenixfi"
version := "1.0.1"
ThisBuild / version := "1.0.1"
// Note, it's not required for you to define these three settings. These are
// mostly only necessary if you intend to publish your library's binaries on a
// place like Sonatype.
// Want to use a published library in your project?
// You can define other libraries as dependencies in your build like this:
lazy val NexusReleases = "Sonatype Releases".at(
"https://s01.oss.sonatype.org/content/repositories/releases"
)
lazy val NexusSnapshots = "Sonatype Snapshots".at(
"https://s01.oss.sonatype.org/content/repositories/snapshots"
)
resolvers ++= Seq(
NexusReleases,
NexusSnapshots
) ++ Resolver.sonatypeOssRepos("public") ++ Resolver.sonatypeOssRepos(
"snapshots"
)
val AkkaVersion = "2.8.0"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-testkit" % AkkaVersion % Test,
"com.typesafe.akka" %% "akka-slf4j" % AkkaVersion % Test,
"com.typesafe.akka" %% "akka-protobuf-v3" % AkkaVersion % Test,
"com.typesafe.akka" %% "akka-serialization-jackson" % AkkaVersion % Test,
"com.typesafe.akka" %% "akka-stream" % AkkaVersion % Test,
"com.typesafe.akka" %% "akka-actor-typed" % AkkaVersion % Test
)
libraryDependencies ++= Seq(
"org.ergoplatform" %% "ergo-appkit" % "5.0.1",
"io.github.k-singh" %% "plasma-toolkit" % "1.0.2",
"io.github.ergo-lend" % "edge_2.12" % "0.1-SNAPSHOT",
"com.google.code.gson" % "gson" % "2.10.1",
"org.scalatest" %% "scalatest" % "3.2.15" % Test,
"org.scalacheck" %% "scalacheck" % "1.17.0" % Test,
"com.squareup.okhttp3" % "mockwebserver" % "3.12.0" % Test
)
libraryDependencies += "com.lihaoyi" %% "requests" % "0.6.9"
libraryDependencies ++= Seq(
"com.beachape" %% "enumeratum" % "1.7.2"
)
libraryDependencies += "org.apache.httpcomponents" % "httpclient" % "4.5.14"
resolvers ++= Seq(
"Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases/",
"SonaType" at "https://oss.sonatype.org/content/groups/public",
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
"Bintray" at "https://jcenter.bintray.com/"
)
assemblyMergeStrategy in assembly := {
case PathList("reference.conf") => MergeStrategy.concat
case "logback.xml" => MergeStrategy.first
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
case x if x.endsWith("module-info.class") => MergeStrategy.discard
case PathList("org", "bouncycastle", xs @ _*) => MergeStrategy.first
case PathList("org", "iq80", "leveldb", xs @ _*) => MergeStrategy.first
case PathList("org", "bouncycastle", xs @ _*) => MergeStrategy.first
case PathList("javax", "activation", xs @ _*) => MergeStrategy.last
case PathList("javax", "annotation", xs @ _*) => MergeStrategy.last
case "serviceOwner.json" => MergeStrategy.discard
case other => (assemblyMergeStrategy in assembly).value(other)
}
assemblyJarName in assembly := s"grease-fire-${version.value}.jar"
assemblyOutputPath in assembly := file(
s"./grease-fire-${version.value}.jar/"
)
mainClass in assembly := Some("app.GreaseFire")
mainClass := Some("app.GreaseFire")