-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathbuild.sbt
87 lines (71 loc) · 2.84 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
import sbt.Keys.{homepage, scalaVersion}
name := "scrypto"
description := "Cryptographic primitives for Scala"
lazy val scala212 = "2.12.15"
lazy val scala211 = "2.11.12"
lazy val scala213 = "2.13.7"
crossScalaVersions := Seq(scala212, scala211, scala213)
scalaVersion := scala212
javacOptions ++=
"-source" :: "1.8" ::
"-target" :: "1.8" ::
Nil
lazy val commonSettings = Seq(
organization := "org.scorexfoundation",
resolvers += Resolver.sonatypeRepo("public"),
licenses := Seq("CC0" -> url("https://creativecommons.org/publicdomain/zero/1.0/legalcode")),
homepage := Some(url("https://github.com/input-output-hk/scrypto")),
pomExtra :=
<developers>
<developer>
<id>kushti</id>
<name>Alexander Chepurnoy</name>
<url>http://chepurnoy.org/</url>
</developer>
</developers>,
scmInfo := Some(
ScmInfo(
url("https://github.com/input-output-hk/scrypto"),
"scm:git@github.com:input-output-hk/scrypto.git"
)
),
)
libraryDependencies ++= Seq(
"org.rudogma" %% "supertagged" % "1.5",
"com.google.guava" % "guava" % "23.0",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.2",
"org.whispersystems" % "curve25519-java" % "0.5.0",
"org.bouncycastle" % "bcprov-jdk15to18" % "1.66",
"org.scorexfoundation" %% "scorex-util" % "0.1.8"
)
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.1.+" % Test,
"org.scalacheck" %% "scalacheck" % "1.14.+" % Test,
// https://mvnrepository.com/artifact/org.scalatestplus/scalatestplus-scalacheck
"org.scalatestplus" %% "scalatestplus-scalacheck" % "3.1.0.0-RC2" % Test
)
publishMavenStyle := true
publishArtifact in Test := false
publishTo := sonatypePublishToBundle.value
pomIncludeRepository := { _ => false }
lazy val scrypto = (project in file(".")).settings(commonSettings: _*)
lazy val benchmarks = (project in file("benchmarks"))
.settings(commonSettings, name := "scrypto-benchmarks")
.dependsOn(scrypto)
.enablePlugins(JmhPlugin)
credentials ++= (for {
username <- Option(System.getenv().get("SONATYPE_USERNAME"))
password <- Option(System.getenv().get("SONATYPE_PASSWORD"))
} yield Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)).toSeq
// prefix version with "-SNAPSHOT" for builds without a git tag
dynverSonatypeSnapshots in ThisBuild := true
// use "-" instead of default "+"
dynverSeparator in ThisBuild := "-"
// PGP key for signing a release build published to sonatype
// signing is done by sbt-pgp plugin
// how to generate a key - https://central.sonatype.org/pages/working-with-pgp-signatures.html
// how to export a key see ci/import_gpg.sh
pgpPublicRing := file("ci/pubring.asc")
pgpSecretRing := file("ci/secring.asc")
pgpPassphrase := sys.env.get("PGP_PASSPHRASE").map(_.toArray)
usePgpKeyHex("AA4F785C04B9DCCDD5332FB1329014D11A57FA1A")