File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ organization in ThisBuild := "com.github.japgolly.scalajs-react"
22homepage in ThisBuild := Some (url(" https://github.com/japgolly/scalajs-react" ))
33licenses in ThisBuild := (" Apache-2.0" , url(" http://opensource.org/licenses/Apache-2.0" )) :: Nil
44shellPrompt in ThisBuild := ((s : State ) => Project .extract(s).currentRef.project + " > " )
5+ sonatypeProfileName := " com.github.japgolly"
56
67val root = ScalajsReact .root
78val core = ScalajsReact .core
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv
99import org .scalajs .jsdependencies .sbtplugin .JSDependenciesPlugin
1010import org .scalajs .jsdependencies .sbtplugin .JSDependenciesPlugin .autoImport ._
1111import 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 >
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ libraryDependencies ++= {
1616addSbtPlugin(" org.scala-js" % " sbt-scalajs" % scalaJSVersion)
1717addSbtPlugin(" com.jsuereth" % " sbt-pgp" % " 1.1.2" )
1818addSbtPlugin(" 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." ))
You can’t perform that action at this time.
0 commit comments