-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.sbt
64 lines (63 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
val akkaVersion = "2.6.19"
val akkaHttpVersion = "10.2.9"
val akkaHttpCirce = "1.39.2"
val akkaJsonStreaming = "3.0.4"
val circeVersion = "0.14.2"
val scalaTestVersion = "3.2.11"
val commonsCodecVersion = "1.15"
lazy val rootProject = (project in file("."))
.configs(IntegrationTest)
.settings(
Defaults.itSettings,
IntegrationTest / dependencyClasspath := (IntegrationTest / dependencyClasspath).value ++ (Test / exportedProducts).value,
name:= "psg-cardano-wallet-api",
scalaVersion := "2.13.9",
organization := "solutions.iog",
homepage := Some(url("https://github.com/input-output-hk/psg-cardano-wallet-api")),
scmInfo := Some(ScmInfo(url("https://github.com/input-output-hk/psg-cardano-wallet-api"), "scm:[email protected]:input-output-hk/psg-cardano-wallet-api.git")),
developers := List(
Developer("mcsherrylabs", "Alan McSherry", "[email protected]", url("https://github.com/mcsherrylabs")),
Developer("maciejbak85", "Maciej Bak", "[email protected]", url("https://github.com/maciejbak85"))
),
publishMavenStyle := true,
updateOptions := updateOptions.value.withGigahorse(false),
licenses := Seq("APL2" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt")),
description := "A java/scala wrapper for the cardano wallet backend API",
usePgpKeyHex("F4ED23D42A612E27F11A6B5AF75482A04B0D9486"),
isSnapshot := false,
publishTo := Some {
// publish to the sonatype repository
val sonaUrl = "https://oss.sonatype.org/"
if (isSnapshot.value)
"snapshots" at sonaUrl + "content/repositories/snapshots"
else
"releases" at sonaUrl + "service/local/staging/deploy/maven2"
},
credentials += Credentials("Sonatype Nexus Repository Manager",
"oss.sonatype.org",
sys.env.getOrElse("SONA_USER", ""),
sys.env.getOrElse("SONA_PASS", "")),
ThisBuild / dynverSonatypeSnapshots := true,
javacOptions ++= Seq("-source", "1.8", "-target", "1.8"),
scalacOptions ++= Seq("-unchecked", "-deprecation", "-Ymacro-annotations"),
Test / parallelExecution := true,
IntegrationTest / parallelExecution := false,
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-actor-typed" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.lightbend.akka" %% "akka-stream-alpakka-json-streaming" % akkaJsonStreaming,
"io.circe" %% "circe-generic-extras" % circeVersion,
"de.heikoseeberger" %% "akka-http-circe" % akkaHttpCirce,
"commons-codec" % "commons-codec" % commonsCodecVersion,
"org.scalatest" %% "scalatest" % scalaTestVersion % "it, test",
),
assembly / assemblyMergeStrategy := {
case "module-info.class" => MergeStrategy.discard
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
}
)