-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
68 lines (51 loc) · 2.12 KB
/
build.sbt
File metadata and controls
68 lines (51 loc) · 2.12 KB
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
import sbt.Keys._
import sbt._
organization := "com.binarydistrict"
name := "hometasks"
version := "0.1.0"
scalaVersion := "2.12.3"
resolvers ++= Seq("Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases/",
"SonaType" at "https://oss.sonatype.org/content/groups/public",
"Typesafe maven releases" at "http://repo.typesafe.com/typesafe/maven-releases/",
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/")
val scorexVersion = "4bc8c385-SNAPSHOT"
libraryDependencies ++= Seq(
"org.scorexfoundation" %% "iodb" % "0.3.2",
("org.scorexfoundation" %% "scorex-core" % scorexVersion).exclude("ch.qos.logback", "logback-classic"),
"ch.qos.logback" % "logback-classic" % "1.2.3",
"org.scorexfoundation" %% "scorex-testkit" % scorexVersion % "test",
"org.scalactic" %% "scalactic" % "3.0.5" % "test",
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"org.msgpack" %% "msgpack-scala" % "0.8.13",
"org.scalacheck" %% "scalacheck" % "1.13.+" % "test"
)
mainClass in assembly := Some("BDApp")
mainClass in run := Some("BDApp")
fork := true
val opts = Seq(
"-server",
// JVM memory tuning for 2g ram
"-Xms128m",
"-Xmx2G",
"-XX:+ExitOnOutOfMemoryError",
// Java 9 support
"-XX:+IgnoreUnrecognizedVMOptions",
"--add-modules=java.xml.bind",
// from https://groups.google.com/d/msg/akka-user/9s4Yl7aEz3E/zfxmdc0cGQAJ
"-XX:+UseG1GC",
"-XX:+UseNUMA",
"-XX:+AlwaysPreTouch",
// probably can't use these with jstack and others tools
"-XX:+PerfDisableSharedMem",
"-XX:+ParallelRefProcEnabled",
"-XX:+UseStringDeduplication")
javaOptions in run ++= opts
homepage := Some(url("https://binarydistrict.com/ru/courses/blockchain-developer-30-01-17"))
licenses := Seq("CC0" -> url("https://creativecommons.org/publicdomain/zero/1.0/legalcode"))
mainClass in assembly := Some("BDApp")
assemblyMergeStrategy in assembly := {
case "logback.xml" => MergeStrategy.first
case "module-info.class" => MergeStrategy.discard
case PathList("org", "scalatools", "testing", xs @ _*) => MergeStrategy.first
case other => (assemblyMergeStrategy in assembly).value(other)
}