Skip to content

Commit 959aa2e

Browse files
committed
Merge pull request #3 from tuplejump/develop
Changes for publishing to maven
2 parents 3ce1b9c + 6c76224 commit 959aa2e

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Embedded Kafka[![Build Status](https://travis-ci.org/tuplejump/embedded-kafka.svg)](http://travis-ci.org/tuplejump/embedded-kafka)
22
Embedded Kafka for demos, testing and quick prototyping. Much is taken right from the Apache Spark Streaming Kafka test files.
33

4-
## Status
5-
This is just the initial commit, more to come including code improvements, configuration improvements/additions.
6-
74
## Features
85

96
- Quick and easy prototyping, testing
@@ -20,13 +17,6 @@ This is just the initial commit, more to come including code improvements, confi
2017
- Additional and improved configuration
2118
- Documentation
2219
- And much more
23-
24-
## Build
25-
Not pushed to sonatype yet, so for now you do need to build and publish to your local ivy repo:
26-
27-
sbt test
28-
sbt it:test
29-
sbt publish-local # binaries
3020

3121
## Scala Version
3222
This project uses Scala 2.11 by default. To build against Scala 2.10 vs 2.11 run

project/Build.scala

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import de.heikoseeberger.sbtheader.AutomateHeaderPlugin
77
object Build extends sbt.Build {
88

99
lazy val root = project.in(file("."))
10-
.settings(Settings.common)
10+
.settings(Settings.common ++ Settings.publishSettings)
1111
.settings(Seq(libraryDependencies ++= Seq(
1212
"org.apache.kafka" %% "kafka" % "0.9.0.1",
1313
"ch.qos.logback" % "logback-classic" % "1.0.7",
@@ -196,4 +196,16 @@ object Settings extends sbt.Build {
196196
binaryIssueFilters ++= Seq.empty
197197
)
198198

199+
lazy val publishSettings = Seq(
200+
publishMavenStyle := true,
201+
publishTo := {
202+
val nexus = "https://oss.sonatype.org/"
203+
if (isSnapshot.value)
204+
Some("snapshots" at nexus + "content/repositories/snapshots")
205+
else
206+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
207+
},
208+
publishArtifact in Test := false,
209+
pomIncludeRepository := { _ => false }
210+
)
199211
}

0 commit comments

Comments
 (0)