forked from blockchaindevelopersclass/hometasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
56 lines (40 loc) · 1.65 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 sbt.Keys._
import sbt._
organization := "com.binarydistrict"
name := "blockchain developers"
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 = "04b0b5be-SNAPSHOT"
libraryDependencies ++= Seq(
"org.scorexfoundation" %% "iodb" % "0.3.2",
("org.scorexfoundation" %% "scorex-core" % scorexVersion).exclude("ch.qos.logback", "logback-classic"),
"org.scorexfoundation" %% "scorex-testkit" % scorexVersion % "test",
"org.scalactic" %% "scalactic" % "3.0.+" % "test",
"org.scalatest" %% "scalatest" % "3.0.+" % "test",
"org.scalacheck" %% "scalacheck" % "1.13.+" % "test"
)
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"))