This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.sbt
79 lines (76 loc) · 3.22 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
ThisBuild / scalaVersion := "2.13.6"
val specs2 = "4.12.4-js-ec"
val okhttp = "4.9.1"
lazy val root = project
.in(file("."))
.enablePlugins(GitVersioning)
.enablePlugins(BuildInfoPlugin).settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "stellar.sdk"
)
.enablePlugins(ParadoxPlugin).settings(
paradoxProperties ++= Map(
"name" -> name.value,
"organization" -> organization.value,
"version" -> version.value,
"scalaBinaryVersion" -> scalaBinaryVersion.value,
"scaladoc.stellar.base_url" -> "latest/api/"
),
apidocRootPackage := "stellar.sdk"
)
.enablePlugins(ParadoxMaterialThemePlugin).settings(
Compile / paradoxMaterialTheme ~= {
_
.withRepository(url("https://github.com/synesso/scala-stellar-sdk").toURI)
.withSocial(uri("https://github.com/synesso"), uri("https://keybase.io/jem"))
}
)
.enablePlugins(SiteScaladocPlugin)
.enablePlugins(ParadoxSitePlugin)
.enablePlugins(GhpagesPlugin).settings(
scmInfo := Some(ScmInfo(url("https://github.com/synesso/scala-stellar-sdk"), "scm:git:git@github.com:synesso/scala-stellar-sdk.git")),
git.remoteRepo := scmInfo.value.get.connection.replace("scm:git:", "")
)
.configs(IntegrationTest)
.settings(
name := "scala-stellar-sdk",
organization := "io.github.synesso",
homepage := Some(url("https://github.com/synesso/scala-stellar-sdk")),
startYear := Some(2018),
description := "Perform Stellar (distributed payments platform) operations from your Scala application. " +
"Build and submit transactions, query the state of the network and stream updates.",
developers := List(
Developer("jem", "Jem Mawson", "jem.mawson@gmail.com", url = url("https://keybase.io/jem"))
),
crossScalaVersions := Seq("2.12.14", "2.13.6"),
Defaults.itSettings,
resolvers ++= List(
Resolver.jcenterRepo,
"jitpack" at "https://jitpack.io"
),
libraryDependencies ++= List(
"ch.qos.logback" % "logback-classic" % "1.2.5",
"com.github.synesso" % "stellar-xdr-jre" % "17.0.0",
"com.softwaremill.retry" %% "retry" % "0.3.3",
"com.squareup.okhttp3" % "okhttp" % okhttp,
"com.squareup.okhttp3" % "logging-interceptor" % okhttp,
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.4",
"com.squareup.okio" % "okio" % "2.10.0",
"commons-codec" % "commons-codec" % "1.15",
"io.github.novacrypto" % "BIP39" % "2019.01.27",
"net.i2p.crypto" % "eddsa" % "0.3.0",
"org.json4s" %% "json4s-native" % "4.0.3",
"org.scala-lang.modules" %% "scala-collection-compat" % "2.5.0",
"tech.sparse" %% "toml-scala" % "0.2.2",
"com.github.julien-truffaut" %% "monocle-core" % "2.0.5" % "test",
"com.github.julien-truffaut" %% "monocle-macro" % "2.0.5" % "test",
"com.squareup.okhttp3" % "mockwebserver" % okhttp % "test",
"org.typelevel" %% "cats-effect" % "3.2.2",
"org.specs2" %% "specs2-core" % specs2 % "test,it",
"org.specs2" %% "specs2-mock" % specs2 % "test",
"org.specs2" %% "specs2-scalacheck" % specs2 % "test"
),
coverageMinimumStmtTotal := 95,
coverageFailOnMinimum := true,
coverageExcludedPackages := "\\*DocExamples.scala",
)