forked from ACINQ/bitcoin-lib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
67 lines (53 loc) · 1.93 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
organization := "com.alexdupre"
name := "bitcoincash-lib"
version := "0.16-SNAPSHOT"
crossScalaVersions := Seq("2.11.12", "2.12.10", "2.13.1")
scalaVersion := "2.13.1"
scalacOptions ++= Seq("-deprecation", "-feature", "-language:implicitConversions,postfixOps", "-unchecked")
libraryDependencies ++= Seq(
"fr.acinq.bitcoin" % "secp256k1-jni" % "1.2",
"com.madgag.spongycastle" % "core" % "1.58.0.0",
"org.scodec" %% "scodec-bits" % "1.1.12",
"org.slf4j" % "slf4j-api" % "1.7.25",
"ch.qos.logback" % "logback-classic" % "1.2.3" % "test",
"com.google.guava" % "guava" % "19.0" % "test",
"org.scalatest" %% "scalatest" % "3.0.8" % "test",
"org.json4s" %% "json4s-jackson" % "3.6.7" % "test",
)
lazy val gitSubmoduleUpdateTask = TaskKey[Unit]("gitSubmoduleUpdate", "Updates git sub-modules")
gitSubmoduleUpdateTask := {
import sys.process._
Seq("git", "submodule", "update", "--init", "--recursive") !
}
compile in Compile := (compile in Compile).dependsOn(gitSubmoduleUpdateTask).value
unmanagedSourceDirectories in Compile += baseDirectory.value / "secp256k1" / "src"
publishMavenStyle := true
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")
}
pomIncludeRepository := { _ =>
false
}
pomExtra := (<url>https://github.com/alexdupre/bitcoincash-lib</url>
<licenses>
<license>
<name>Apache 2</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:alexdupre/bitcoincash-lib.git</url>
<connection>scm:git:git@github.com:alexdupre/bitcoincash-lib.git</connection>
</scm>
<developers>
<developer>
<id>alexdupre</id>
<name>Alex Dupre</name>
<url>http://www.alexdupre.com</url>
</developer>
</developers>)