Skip to content

Commit 1baa3e0

Browse files
committed
Adjusted build to publish correctly to sonatype central.
1 parent 24efb8c commit 1baa3e0

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Please use the following commands to publish to Sonatype:
4141

4242
```
4343
$ sbt clean +publishSigned
44+
$ sbt sonaUpload
4445
```
4546

4647
**Creating Scaladoc**

build.sbt

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ import java.io.PrintWriter
55
import scala.io.Source
66
import sbt.util.Level
77

8-
val defaultScalaVersion = "2.13.17"
8+
ThisBuild / organization := "org.scalatestplus"
99

10-
scalaVersion := defaultScalaVersion
10+
ThisBuild / version := "3.2.19.0"
1111

12-
publishTo := {
13-
val nexus = "https://oss.sonatype.org/"
14-
Some("publish-releases" at nexus + "service/local/staging/deploy/maven2")
15-
}
12+
val defaultScalaVersion = "2.13.17"
13+
14+
publishTo := localStaging.value
1615

1716
publishArtifact := false
1817

@@ -48,9 +47,7 @@ def docTask(docDir: File, resDir: File, projectName: String): File = {
4847
}
4948

5049
val sharedSettings = Seq(
51-
name := "scalacheck-1.19",
52-
organization := "org.scalatestplus",
53-
version := "3.2.19.0",
50+
name := "scalacheck-1.19",
5451
homepage := Some(url("https://github.com/scalatest/scalatestplus-scalacheck")),
5552
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
5653
developers := List(
@@ -98,10 +95,7 @@ val sharedSettings = Seq(
9895
GenScalaCheckGen.genTest((Test / sourceManaged).value / "org" / "scalatest" / "check", version.value, scalaVersion.value)
9996
}
10097
},
101-
publishTo := {
102-
val nexus = "https://oss.sonatype.org/"
103-
Some("publish-releases" at nexus + "service/local/staging/deploy/maven2")
104-
},
98+
publishTo := localStaging.value,
10599
publishMavenStyle := true,
106100
Test / publishArtifact := false,
107101
pomIncludeRepository := { _ => false },

0 commit comments

Comments
 (0)