Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit f70cf82

Browse files
authored
Merge pull request #25 from lightbend/publish
Added publish commands to build. Now publishes to Sonatype.
2 parents 3d9d2af + 5895f2c commit f70cf82

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

build.sbt

+27-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,30 @@ libraryDependencies ++= Seq(
2828

2929
testFrameworks += new TestFramework("minitest.runner.Framework")
3030

31-
publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath + "/.m2/repository")))
31+
licenses := Seq("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
32+
33+
developers := List(
34+
Developer("debasishg", "Debasish Ghosh", "@debasishg", url("https://github.com/debasishg")),
35+
Developer("blublinsky", "Boris Lublinsky", "@blublinsky", url("https://github.com/blublinsky")),
36+
Developer("maasg", "Gerard Maas", "@maasg", url("https://github.com/maasg"))
37+
)
38+
39+
organizationName := "lightbend"
40+
41+
organizationHomepage := Some(url("http://lightbend.com/"))
42+
43+
homepage := scmInfo.value map (_.browseUrl)
44+
45+
scmInfo := Some(ScmInfo(url("https://github.com/lightbend/kafka-streams-scala"), "[email protected]:lightbend/kafka-streams-scala.git"))
46+
47+
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
48+
49+
publishTo := {
50+
val nexus = "https://oss.sonatype.org/"
51+
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
52+
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
53+
}
54+
55+
publishMavenStyle := true
56+
57+
publishArtifact in Test := false

0 commit comments

Comments
 (0)