forked from hyperledger-labs/Scorex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
110 lines (81 loc) · 2.99 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
110
name := "scorex-core"
lazy val commonSettings = Seq(
scalaVersion := "2.12.2",
organization := "org.scorexfoundation",
version := "2.0.0-M5-SNAPSHOT"
)
scalaVersion := "2.12.2"
organization := "org.scorexfoundation"
version := "2.0.0-M5-SNAPSHOT"
resolvers += "Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases/"
val circeVersion = "0.+"
val networkDependencies = Seq(
"com.typesafe.akka" %% "akka-actor" % "2.4.17",
"org.bitlet" % "weupnp" % "0.1.+",
"commons-net" % "commons-net" % "3.+"
)
val apiDependencies = Seq(
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"io.swagger" %% "swagger-scala-module" % "1.0.3",
"com.github.swagger-akka-http" %% "swagger-akka-http" % "0.+",
"com.typesafe.akka" %% "akka-http" % "10.+"
)
val loggingDependencies = Seq(
"ch.qos.logback" % "logback-classic" % "1.+",
"ch.qos.logback" % "logback-core" % "1.+"
)
val testingDependencies = Seq(
"com.typesafe.akka" %% "akka-testkit" % "2.4.17" % "test",
"org.scalactic" %% "scalactic" % "3.0.1" % "test",
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"org.scalacheck" %% "scalacheck" % "1.13.+" % "test",
"net.databinder.dispatch" %% "dispatch-core" % "+" % "test"
)
libraryDependencies ++= Seq(
"com.chuusai" %% "shapeless" % "2.+",
"org.scorexfoundation" %% "scrypto" % "1.2.1"
) ++ networkDependencies ++ apiDependencies ++ loggingDependencies ++ testingDependencies
//todo: is it needed?
libraryDependencies += "org.atnos" %% "eff-cats" % "2.0.+"
scalacOptions ++= Seq("-feature", "-deprecation")
javaOptions ++= Seq(
"-server"
)
testOptions in Test += Tests.Argument("-oD", "-u", "target/test-reports")
//publishing settings
publishMavenStyle := true
publishArtifact in Test := false
publishTo := {
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 := true
pomIncludeRepository := { _ => false }
licenses := Seq("CC0" -> url("https://creativecommons.org/publicdomain/zero/1.0/legalcode"))
homepage := Some(url("https://github.com/ScorexFoundation/Scorex"))
pomExtra := (
<scm>
<url>[email protected]:ScorexFoundation/Scorex.git</url>
<connection>scm:git:[email protected]:ScorexFoundation/Scorex.git</connection>
</scm>
<developers>
<developer>
<id>kushti</id>
<name>Alexander Chepurnoy</name>
<url>http://chepurnoy.org/</url>
</developer>
</developers>)
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
lazy val testkit = Project(id = "testkit", base = file(s"testkit"))
.dependsOn(basics)
.settings(commonSettings: _*)
lazy val examples = Project(id = "examples", base = file(s"examples"))
.dependsOn(basics, testkit)
.settings(commonSettings: _*)
lazy val basics = Project(id = "scorex", base = file("."))
.settings(commonSettings: _*)