Skip to content

Commit a18274a

Browse files
committed
Move to new maven/sonatype org name, server
1 parent 4fb3068 commit a18274a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

build.sbt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ lazy val commonSettings = Seq(
1414
version := "0.12.0",
1515
scalaVersion := dottyVersion,
1616
resolvers += Resolver.mavenLocal,
17-
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
17+
resolvers += "Sonatype OSS Snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots",
1818
updateOptions := updateOptions.value.withLatestSnapshots(false),
1919
scalacOptions ++= Seq("-feature", "-unchecked", "-deprecation"),
2020
autoCompilerPlugins := true,
@@ -139,10 +139,13 @@ lazy val docs = (crossProject(JVMPlatform)
139139
*/
140140

141141
skip in publish := true
142-
sonatypeProfileName := "com.github.EmergentOrder"
143142

144143
lazy val sonatypeSettings = Seq(
145-
organization := "com.github.EmergentOrder",
144+
sonatypeProfileName := "org.emergent-order",
145+
sonatypeCredentialHost := "s01.oss.sonatype.org",
146+
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
147+
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org",
148+
organization := "org.emergent-order",
146149
homepage := Some(url("https://github.com/EmergentOrder/onnx-scala")),
147150
scmInfo := Some(ScmInfo(url("https://github.com/EmergentOrder/onnx-scala"),
148151
"[email protected]:EmergentOrder/onnx-scala.git")),
@@ -154,10 +157,7 @@ licenses += ("AGPL-3.0", url("https://www.gnu.org/licenses/agpl-3.0.html")),
154157
publishMavenStyle := true,
155158
publishConfiguration := publishConfiguration.value.withOverwrite(true),
156159
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true),
157-
publishTo := Some(
158-
if (isSnapshot.value)
159-
Opts.resolver.sonatypeSnapshots
160-
else
161-
Opts.resolver.sonatypeStaging
162-
)
160+
publishTo := { val nexus = "https://s01.oss.sonatype.org/"
161+
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
162+
else Some("releases" at nexus + "service/local/staging/deploy/maven2") }
163163
)

0 commit comments

Comments
 (0)