Add publishing
This commit is contained in:
parent
7dd1bf758a
commit
340870cc9e
19
build.sbt
19
build.sbt
@ -1,4 +1,5 @@
|
|||||||
import dependencies._
|
import dependencies._
|
||||||
|
import xerial.sbt.Sonatype._
|
||||||
|
|
||||||
cancelable in Global := true
|
cancelable in Global := true
|
||||||
|
|
||||||
@ -15,6 +16,23 @@ val commonSettings = Seq(
|
|||||||
val withTests : String = "compile->compile;test->test"
|
val withTests : String = "compile->compile;test->test"
|
||||||
val testOnly : String = "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
|
lazy val docs = project
|
||||||
.in(file("./router-docs"))
|
.in(file("./router-docs"))
|
||||||
.settings(commonSettings)
|
.settings(commonSettings)
|
||||||
@ -77,6 +95,7 @@ lazy val router = project
|
|||||||
addCommandAlias("dev", "; compile; fastOptJS::startWebpackDevServer; devwatch; fastOptJS::stopWebpackDevServer"),
|
addCommandAlias("dev", "; compile; fastOptJS::startWebpackDevServer; devwatch; fastOptJS::stopWebpackDevServer"),
|
||||||
addCommandAlias("devwatch", "~; fastOptJS; copyFastOptJS")
|
addCommandAlias("devwatch", "~; fastOptJS; copyFastOptJS")
|
||||||
)
|
)
|
||||||
|
.settings(publishSettings)
|
||||||
|
|
||||||
lazy val exampleApp = (project in file("router-example"))
|
lazy val exampleApp = (project in file("router-example"))
|
||||||
.settings(name := "outwatch-example")
|
.settings(name := "outwatch-example")
|
||||||
|
@ -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.scala-js" % "sbt-scalajs" % "0.6.26")
|
||||||
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "1.2.8" )
|
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "1.2.8" )
|
||||||
addSbtPlugin("com.47deg" % "sbt-microsites" % "0.8.0")
|
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…
Reference in New Issue
Block a user