Skip to content

Commit bb15bdb

Browse files
committed
Use sonatypeBundle
1 parent a4fd273 commit bb15bdb

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

build.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ organization in ThisBuild := "com.github.japgolly.scalajs-react"
22
homepage in ThisBuild := Some(url("https://github.com/japgolly/scalajs-react"))
33
licenses in ThisBuild := ("Apache-2.0", url("http://opensource.org/licenses/Apache-2.0")) :: Nil
44
shellPrompt in ThisBuild := ((s: State) => Project.extract(s).currentRef.project + "> ")
5+
sonatypeProfileName := "com.github.japgolly"
56

67
val root = ScalajsReact.root
78
val core = ScalajsReact.core

project/Build.scala

+2-7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv
99
import org.scalajs.jsdependencies.sbtplugin.JSDependenciesPlugin
1010
import org.scalajs.jsdependencies.sbtplugin.JSDependenciesPlugin.autoImport._
1111
import sbtrelease.ReleasePlugin.autoImport._
12+
import xerial.sbt.Sonatype.autoImport._
1213
//import scalajsbundler.sbtplugin.ScalaJSBundlerPlugin
1314
//import scalajsbundler.sbtplugin.ScalaJSBundlerPlugin.autoImport._
1415

@@ -117,13 +118,7 @@ object ScalajsReact {
117118

118119
def publicationSettings: PE =
119120
_.settings(
120-
publishTo := {
121-
val nexus = "https://oss.sonatype.org/"
122-
if (isSnapshot.value)
123-
Some("snapshots" at nexus + "content/repositories/snapshots")
124-
else
125-
Some("releases" at nexus + "service/local/staging/deploy/maven2")
126-
},
121+
publishTo := sonatypePublishToBundle.value,
127122
pomExtra :=
128123
<scm>
129124
<connection>scm:git:github.com/japgolly/scalajs-react</connection>

project/plugins.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ libraryDependencies ++= {
1616
addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)
1717
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2")
1818
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.13")
19+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.2")
1920

2021
{
2122
if (scalaJSVersion.startsWith("0."))

0 commit comments

Comments
 (0)