@@ -14,7 +14,7 @@ lazy val commonSettings = Seq(
14
14
version := " 0.12.0" ,
15
15
scalaVersion := dottyVersion,
16
16
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" ,
18
18
updateOptions := updateOptions.value.withLatestSnapshots(false ),
19
19
scalacOptions ++= Seq (" -feature" , " -unchecked" , " -deprecation" ),
20
20
autoCompilerPlugins := true ,
@@ -139,10 +139,13 @@ lazy val docs = (crossProject(JVMPlatform)
139
139
*/
140
140
141
141
skip in publish := true
142
- sonatypeProfileName := " com.github.EmergentOrder"
143
142
144
143
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" ,
146
149
homepage := Some (url(" https://github.com/EmergentOrder/onnx-scala" )),
147
150
scmInfo := Some (ScmInfo (url(" https://github.com/EmergentOrder/onnx-scala" ),
148
151
" [email protected] :EmergentOrder/onnx-scala.git" )),
@@ -154,10 +157,7 @@ licenses += ("AGPL-3.0", url("https://www.gnu.org/licenses/agpl-3.0.html")),
154
157
publishMavenStyle := true ,
155
158
publishConfiguration := publishConfiguration.value.withOverwrite(true ),
156
159
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" ) }
163
163
)
0 commit comments