forked from profunktor/fs2-rabbit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
108 lines (91 loc) · 3.84 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name := """fs2-rabbit-root"""
organization in ThisBuild := "com.github.gvolpe"
version in ThisBuild := "0.0.11-SNAPSHOT"
scalaVersion in ThisBuild := "2.11.8"
// Plan to support both Scala 2.11.x and 2.12.x once the dependencies also support 2.12.x
//crossScalaVersions in ThisBuild := Seq("2.11.8", "2.12.2")
val circeVersion = "0.8.0"
val qpidBrokerVersion = "6.1.2"
val commonSettings = Seq(
licenses +=("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")),
homepage := Some(url("https://github.com/gvolpe/fs2-rabbit")),
libraryDependencies ++= Seq(
"com.rabbitmq" % "amqp-client" % "4.1.0",
"co.fs2" %% "fs2-core" % "0.10.0-M2",
"org.typelevel" %% "cats-effect" % "0.3",
"com.typesafe" % "config" % "1.3.1",
// Json libraries
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
// Qpid Broker libraries for test
"org.apache.qpid" % "qpid-broker-core" % qpidBrokerVersion % "test",
"org.apache.qpid" % "qpid-broker-plugins-memory-store" % qpidBrokerVersion % "test",
"org.apache.qpid" % "qpid-broker-plugins-amqp-0-8-protocol" % qpidBrokerVersion % "test",
"org.apache.qpid" % "qpid-client" % qpidBrokerVersion % "test",
"org.apache.geronimo.specs" % "geronimo-jms_1.1_spec" % "1.1.1" % "test",
// Scala test libraries
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
"org.scalacheck" %% "scalacheck" % "1.12.5" % "test"
),
resolvers += "Apache public" at "https://repository.apache.org/content/groups/public/",
scalacOptions ++= Seq(
"-Xlint"
// "-Xfatal-warnings",
// "-feature"
// "-deprecation", //hard to handle when supporting multiple scala versions...
// , "-Xlog-implicits"
//"-Ydebug"
),
incOptions := incOptions.value.withNameHashing(true),
coverageExcludedPackages := "com\\.github\\.gvolpe\\.fs2rabbit\\.examples.*;.*UnderlyingAmqpClient*",
publishTo := {
val sonatype = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at sonatype + "content/repositories/snapshots")
else
Some("releases" at sonatype + "service/local/staging/deploy/maven2")
},
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
pomExtra :=
<scm>
<url>[email protected]:gvolpe/fs2-rabbit.git</url>
<connection>scm:git:[email protected]:gvolpe/fs2-rabbit.git</connection>
</scm>
<developers>
<developer>
<id>gvolpe</id>
<name>Gabriel Volpe</name>
<url>http://github.com/gvolpe</url>
</developer>
</developers>
)
val CoreDependencies: Seq[ModuleID] = Seq(
"ch.qos.logback" % "logback-classic" % "1.1.3" % "test"
)
val ExamplesDependencies: Seq[ModuleID] = Seq(
"io.monix" %% "monix" % "3.0.0-7a337f9",
// "org.scalaz" %% "scalaz-concurrent" % "7.2.13",
"ch.qos.logback" % "logback-classic" % "1.1.3" % "runtime"
)
lazy val noPublish = Seq(
publish := (),
publishLocal := (),
publishArtifact := false
)
lazy val root = project.in(file("."))
.aggregate(`fs2-rabbit`, `fs2-rabbit-examples`)
.settings(noPublish)
lazy val `fs2-rabbit` = project.in(file("core"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= CoreDependencies)
lazy val `fs2-rabbit-examples` = project.in(file("examples"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= ExamplesDependencies)
.settings(noPublish)
.dependsOn(`fs2-rabbit`)
sonatypeProfileName := "com.github.gvolpe"
//resolvers += Resolver.sonatypeRepo("releases")
//addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)