forked from hyperledger-iroha/iroha-scala
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
69 lines (61 loc) · 2.42 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
scalaVersion in ThisBuild := "2.13.8"
licenses in ThisBuild += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html"))
val scalapbc = scalapb.compiler.Version.scalapbVersion
skip in publish := true
lazy val `iroha-scala` = (project in file("."))
// .aggregate(`iroha-monix`)
.aggregate(`iroha-akka`)
val commonSettings: Seq[Setting[_]] = Seq(
resolvers += "jitpack" at "https://jitpack.io",
libraryDependencies ++= Seq(
"com.github.warchant" % "ed25519-sha3-java" % "2.0.1",
"com.thesamet.scalapb" %% "scalapb-runtime-grpc" % scalapbc,
"com.thesamet.scalapb" %% "scalapb-runtime-grpc" % scalapbc % "protobuf",
)
)
val publishSettings: Seq[Setting[_]] =
Seq(
publishMavenStyle := false,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
//FIXME useGpg in xxxGlobalScope := true
//TODO: bintrayRepository := "iroha-scala",
//TODO: bintrayOrganization in bintray := None,
)
//lazy val `iroha-monix` = (project in file("monix"))
// .settings(
// name := "iroha-monix"
// )
// .settings(Monix.acyclicSettings: _*)
// .settings(Monix.compilerSettings: _*)
// .settings(Monix.testSettings: _*)
// .settings(Monix.grpcSettings: _*)
// .settings(Monix.monixSettings:_*)
// .settings(commonSettings: _*)
// .enablePlugins(ProtocPlugin)
lazy val `iroha-akka` = (project in file("akka"))
.settings(
credentials += Credentials(Path.userHome / ".sbt" / "github-maven.credentials"),
resolvers += "castleone-github" at "https://maven.pkg.github.com/CastleOne",
name := "iroha-akka",
organization := "castleone",
fork in Test := true,
publishMavenStyle := true,
publishArtifact in Test := false,
skip in publish := false,
sources in (Compile,doc) := Seq.empty,
publishArtifact in (Compile, packageDoc) := false,
publishTo := Option("github" at "https://maven.pkg.github.com/CastleOne/iroha-scala"),
)
.settings(Akka.akkaSettings: _*)
.settings(commonSettings: _*)
.settings(
scalacOptions ++= Seq(
//Set a relative file path
// s"-P:silencer:sourceRoots=${baseDirectory.value.getCanonicalPath}",
// //Ignore the google protobuf errors. https://github.com/akka/akka-grpc/issues/540.
// "-P:silencer:pathFilters=target/scala-2.12/src_managed/main/com/google/protobuf/descriptor/FileOptions.scala",
"-unchecked", "-deprecation", "-feature", "-Xfatal-warnings"
)
)
.enablePlugins(AkkaGrpcPlugin)