Browse Source

Add publishing

master
Zak Patterson 5 years ago
parent
commit
340870cc9e
  1. 19
      build.sbt
  2. 2
      project/plugins.sbt

19
build.sbt

@ -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")

2
project/plugins.sbt

@ -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")
Loading…
Cancel
Save