Skip to content

Commit dc4f87b

Browse files
committed
Migrate to using central sonatype from oss sonatype
1 parent 613e20e commit dc4f87b

3 files changed

Lines changed: 15 additions & 11 deletions

File tree

build.sbt

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
name := "spark-measure"
66

77
version := "0.26"
8-
isSnapshot := false
98

109
scalaVersion := "2.12.18"
11-
crossScalaVersions := Seq("2.12.18", "2.13.8")
10+
crossScalaVersions := Seq("2.12.18", "2.13.16")
1211

1312
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
1413

@@ -38,14 +37,16 @@ Test / javaOptions ++= Seq(
3837
)
3938

4039
// ─── Publishing ────────────────────────────────────────────────────────────────
41-
publishMavenStyle := true
40+
Compile / packageSrc / publishArtifact := true
41+
Compile / packageDoc / publishArtifact := true
4242

43-
publishTo := Some {
44-
if (isSnapshot.value)
45-
Opts.resolver.sonatypeOssSnapshots.head
46-
else
47-
Opts.resolver.sonatypeStaging
43+
ThisBuild / publishTo := {
44+
val snapshots = "https://central.sonatype.com/repository/maven-snapshots/"
45+
if (isSnapshot.value) Some("central-snapshots" at snapshots)
46+
else localStaging.value
4847
}
48+
ThisBuild / organizationHomepage := Some(url("https://github.com/LucaCanali"))
49+
ThisBuild / versionScheme := Some("early-semver")
4950

5051
// ─── Project metadata ─────────────────────────────────────────────────────────
5152
organization := "ch.cern.sparkmeasure"
@@ -65,7 +66,7 @@ homepage := Some(url("https://github.com/LucaCanali/sparkMeasure"))
6566
scmInfo := Some(
6667
ScmInfo(
6768
browseUrl = url("https://github.com/LucaCanali/sparkMeasure"),
68-
connection = "scm:git@github.com:LucaCanali/sparkMeasure.git"
69+
connection = "scm:git:git@github.com:LucaCanali/sparkMeasure.git"
6970
)
7071
)
7172

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version = 1.9.3
1+
sbt.version = 1.11.5

project/sonatype.sbt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
credentials += Credentials(
2-
Path.userHome / ".sbt" / "1.0" / "sonatype_credentials"
2+
"Sonatype Nexus Repository Manager",
3+
"central.sonatype.com",
4+
sys.env.getOrElse("SONATYPE_USERNAME",""),
5+
sys.env.getOrElse("SONATYPE_PASSWORD","")
36
)
47

0 commit comments

Comments
 (0)