File tree 3 files changed +4
-7
lines changed
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"
2
2
homepage in ThisBuild := Some (url(" https://github.com/japgolly/scalajs-react" ))
3
3
licenses in ThisBuild := (" Apache-2.0" , url(" http://opensource.org/licenses/Apache-2.0" )) :: Nil
4
4
shellPrompt in ThisBuild := ((s : State ) => Project .extract(s).currentRef.project + " > " )
5
+ sonatypeProfileName := " com.github.japgolly"
5
6
6
7
val root = ScalajsReact .root
7
8
val core = ScalajsReact .core
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv
9
9
import org .scalajs .jsdependencies .sbtplugin .JSDependenciesPlugin
10
10
import org .scalajs .jsdependencies .sbtplugin .JSDependenciesPlugin .autoImport ._
11
11
import sbtrelease .ReleasePlugin .autoImport ._
12
+ import xerial .sbt .Sonatype .autoImport ._
12
13
// import scalajsbundler.sbtplugin.ScalaJSBundlerPlugin
13
14
// import scalajsbundler.sbtplugin.ScalaJSBundlerPlugin.autoImport._
14
15
@@ -117,13 +118,7 @@ object ScalajsReact {
117
118
118
119
def publicationSettings : PE =
119
120
_.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,
127
122
pomExtra :=
128
123
<scm >
129
124
<connection >scm: git: github.com/ japgolly/ scalajs- react</connection >
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ libraryDependencies ++= {
16
16
addSbtPlugin(" org.scala-js" % " sbt-scalajs" % scalaJSVersion)
17
17
addSbtPlugin(" com.jsuereth" % " sbt-pgp" % " 1.1.2" )
18
18
addSbtPlugin(" com.github.gseitz" % " sbt-release" % " 1.0.13" )
19
+ addSbtPlugin(" org.xerial.sbt" % " sbt-sonatype" % " 3.9.2" )
19
20
20
21
{
21
22
if (scalaJSVersion.startsWith(" 0." ))
You can’t perform that action at this time.
0 commit comments