Add publishing

This commit is contained in:
Zak Patterson 2019-02-04 17:46:42 -05:00
parent 7dd1bf758a
commit 340870cc9e
2 changed files with 21 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import dependencies._
import xerial.sbt.Sonatype._
cancelable in Global := true
@ -15,6 +16,23 @@ val commonSettings = Seq(
val withTests : String = "compile->compile;test->test"
val testOnly : String = "test->test"
lazy val publishSettings = Seq(
useGpg := true,
publishMavenStyle := true,
publishTo := sonatypePublishTo.value,
publishArtifact in Test := false,
homepage := Some(url("https://github.com/clovellytech/outwatch-router")),
pomIncludeRepository := Function.const(false),
sonatypeProfileName := "com.clovellytech",
// License of your choice
licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT")),
// Where is the source code hosted
sonatypeProjectHosting := Some(GitHubHosting("clovellytech", "outwatch-router", "pattersonzak@gmail.com"))
)
lazy val docs = project
.in(file("./router-docs"))
.settings(commonSettings)
@ -77,6 +95,7 @@ lazy val router = project
addCommandAlias("dev", "; compile; fastOptJS::startWebpackDevServer; devwatch; fastOptJS::stopWebpackDevServer"),
addCommandAlias("devwatch", "~; fastOptJS; copyFastOptJS")
)
.settings(publishSettings)
lazy val exampleApp = (project in file("router-example"))
.settings(name := "outwatch-example")

View File

@ -2,3 +2,5 @@ addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.13.1")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.26")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "1.2.8" )
addSbtPlugin("com.47deg" % "sbt-microsites" % "0.8.0")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2")