forked from cgvarela/shardakka
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
67 lines (55 loc) · 2.07 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
import sbtrelease._
import ReleaseStateTransformations._
scalaVersion := "2.11.11"
name := "shardakka"
organization := "im.actor"
organizationName := "Actor LLC"
organizationHomepage := Some(new URL("https://actor.im/"))
val akkaV = "2.4.19"
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.bintrayRepo("jdgoldie", "maven")
)
resolvers ++= Seq(
"Nexus DiegoSilva Releases" at "http://nexus.diegosilva.com.br:8081/nexus/content/repositories/releases/",
"Nexus DiegoSilva Snapshots" at "http://nexus.diegosilva.com.br:8081/nexus/content/repositories/snapshots/"
)
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaV,
"com.typesafe.akka" %% "akka-persistence" % akkaV,
"com.typesafe.akka" %% "akka-cluster-tools" % akkaV,
"com.typesafe.akka" %% "akka-cluster-sharding" % akkaV,
"com.typesafe.akka" %% "akka-testkit" % akkaV,
"com.google.guava" % "guava" % "18.0",
"im.actor" %% "akka-scalapb-serialization" % "0.1.21-SNAPSHOT",
"org.scala-lang.modules" %% "scala-java8-compat" % "0.7.0",
"com.google.protobuf" % "protobuf-java" % "3.1.0" % "protobuf",
"com.trueaccord.scalapb" %% "scalapb-runtime" % "0.5.47" % "protobuf",
"org.scalatest" %% "scalatest" % "2.2.4" % "test"
)
PB.targets in Compile := Seq(
scalapb.gen() -> (sourceManaged in Compile).value
)
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(action = Command.process("publishSigned", _)),
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
pushChanges
)
unmanagedResourceDirectories in Compile += baseDirectory.value / "src" / "main" / "protobuf"
publishTo := {
val nexus = "http://nexus.diegosilva.com.br:8081/nexus/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "content/repositories/releases")
}
credentials += Credentials("Sonatype Nexus Repository Manager", "nexus.diegosilva.com.br", "admin", "admin123")