-
Notifications
You must be signed in to change notification settings - Fork 79
/
build.sbt
109 lines (82 loc) · 3.05 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import sbt.Keys._
lazy val commonSettings = Seq(
organization := "org.consensusresearch",
version := version.value,
scalaVersion := "2.11.8"
)
def subModule(id: String): Project = Project(id = id, base = file(s"scorex-$id"))
lazy val basics = subModule("basics")
.settings(commonSettings: _*)
.settings(
testOptions in Test := Seq(Tests.Filter(_.matches(".*TestSuite$")))
)
lazy val transaction = subModule("transaction")
.aggregate(basics)
.dependsOn(basics)
.settings(commonSettings: _*)
.settings(
testOptions in Test := Seq(Tests.Filter(_.matches(".*TestSuite$")))
)
lazy val consensus = subModule("consensus")
.aggregate(basics)
.dependsOn(basics)
.settings(commonSettings: _*)
.settings(
testOptions in Test := Seq(Tests.Filter(_.matches(".*TestSuite$")))
)
lazy val root = Project(id = "scorex", base = file("."))
.aggregate(basics, transaction, consensus)
.dependsOn(basics, transaction, consensus)
.settings(commonSettings: _*)
.settings(
testOptions in Test := Seq(Tests.Filter(_.matches(".*TestSuite$")))
)
name := "scorex"
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/")
libraryDependencies ++=
Dependencies.db ++
Dependencies.http ++
Dependencies.akka ++
Dependencies.serialization ++
Dependencies.testKit ++
Dependencies.logging
scalacOptions ++= Seq("-feature", "-deprecation")
javaOptions ++= Seq(
"-server"
)
testOptions in Test += Tests.Argument("-oD", "-u", "target/test-reports")
//assembly settings
assemblyJarName in assembly := "scorex.jar"
test in assembly := {}
mainClass in assembly := Some("scorex.lagonaki.server.Server")
//publishing settings
licenses in ThisBuild := Seq("CC0" -> url("https://creativecommons.org/publicdomain/zero/1.0/legalcode"))
homepage in ThisBuild := Some(url("https://github.com/ConsensusResearch/Scorex-Lagonaki"))
publishMavenStyle in ThisBuild := true
publishArtifact in Test := false
publishTo in ThisBuild := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
fork in ThisBuild := true
pomIncludeRepository in ThisBuild := { _ => false }
licenses in ThisBuild := Seq("CC0" -> url("https://creativecommons.org/publicdomain/zero/1.0/legalcode"))
homepage in ThisBuild := Some(url("https://github.com/ConsensusResearch/Scorex-Lagonaki"))
pomExtra in ThisBuild :=
<scm>
<url>[email protected]:ConsensusResearch/Scorex-Lagonaki.git</url>
<connection>scm:git:[email protected]:ConsensusResearch/Scorex-Lagonaki.git</connection>
</scm>
<developers>
<developer>
<id>kushti</id>
<name>Alexander Chepurnoy</name>
<url>http://chepurnoy.org/</url>
</developer>
</developers>
credentials in ThisBuild += Credentials(Path.userHome / ".ivy2" / ".credentials")