-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
69 lines (57 loc) · 2.18 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
organization := "com.github.pjfanning"
name := "pekko-rabbitmq"
licenses := Seq(
("Apache License, Version 2.0",
url("http://www.apache.org/licenses/LICENSE-2.0")))
homepage := Some(new URL("https://github.com/pjfanning/pekko-rabbitmq"))
ThisBuild / scalaVersion := "2.13.14"
ThisBuild / crossScalaVersions := Seq("2.13.14", "2.12.20", "3.3.3")
def pekko(name: String): ModuleID = "org.apache.pekko" %% s"pekko-$name" % "1.1.1"
libraryDependencies ++= Seq(
"com.rabbitmq" % "amqp-client" % "5.21.0",
pekko("actor") % "provided",
pekko("testkit") % "test",
"com.typesafe" % "config" % "1.4.3" % Test,
"org.specs2" %% "specs2-core" % "4.20.8" % Test,
("org.specs2" %% "specs2-mock" % "4.20.8" % Test).cross(CrossVersion.for3Use2_13)
)
val scalaReleaseVersion = SettingKey[Int]("scalaReleaseVersion")
scalaReleaseVersion := {
val v = scalaVersion.value
CrossVersion.partialVersion(v).map(_._1.toInt).getOrElse {
throw new RuntimeException(s"could not get Scala release version from $v")
}
}
Test / unmanagedSourceDirectories ++= {
if (scalaReleaseVersion.value > 2) {
Seq(
(LocalRootProject / baseDirectory).value / "src" / "test" / "scala-3"
)
} else {
Seq(
(LocalRootProject / baseDirectory).value / "src" / "test" / "scala-2"
)
}
}
Format.settings
developers := List(
Developer(id="sbmpost", name="Stefan Post", email="", url=url("https://github.com/sbmpost")),
Developer(id="gertjana", name="Gertjan Assies", email="", url=url("https://github.com/gertjana")),
Developer(id="reinierl", name="Reinier Lamers", email="", url=url("https://github.com/reinierl")),
Developer(id="t3hnar", name="Yaroslav Klymko", email="", url=url("https://github.com/t3hnar")),
Developer(id="pjfanning", name="PJ Fanning", email="", url=url("https://github.com/pjfanning"))
)
scmInfo := Some(
ScmInfo(
url("https://github.com/pjfanning/pekko-rabbitmq"),
"scm:[email protected]:pjfanning/pekko-rabbitmq.git"
)
)
publishMavenStyle := true
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}