-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to new maven/sonatype org name, server
- Loading branch information
1 parent
4fb3068
commit a18274a
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ lazy val commonSettings = Seq( | |
version := "0.12.0", | ||
scalaVersion := dottyVersion, | ||
resolvers += Resolver.mavenLocal, | ||
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots", | ||
resolvers += "Sonatype OSS Snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots", | ||
updateOptions := updateOptions.value.withLatestSnapshots(false), | ||
scalacOptions ++= Seq("-feature", "-unchecked", "-deprecation"), | ||
autoCompilerPlugins := true, | ||
|
@@ -139,10 +139,13 @@ lazy val docs = (crossProject(JVMPlatform) | |
*/ | ||
|
||
skip in publish := true | ||
sonatypeProfileName := "com.github.EmergentOrder" | ||
|
||
lazy val sonatypeSettings = Seq( | ||
organization := "com.github.EmergentOrder", | ||
sonatypeProfileName := "org.emergent-order", | ||
sonatypeCredentialHost := "s01.oss.sonatype.org", | ||
sonatypeRepository := "https://s01.oss.sonatype.org/service/local", | ||
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org", | ||
organization := "org.emergent-order", | ||
homepage := Some(url("https://github.com/EmergentOrder/onnx-scala")), | ||
scmInfo := Some(ScmInfo(url("https://github.com/EmergentOrder/onnx-scala"), | ||
"[email protected]:EmergentOrder/onnx-scala.git")), | ||
|
@@ -154,10 +157,7 @@ licenses += ("AGPL-3.0", url("https://www.gnu.org/licenses/agpl-3.0.html")), | |
publishMavenStyle := true, | ||
publishConfiguration := publishConfiguration.value.withOverwrite(true), | ||
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true), | ||
publishTo := Some( | ||
if (isSnapshot.value) | ||
Opts.resolver.sonatypeSnapshots | ||
else | ||
Opts.resolver.sonatypeStaging | ||
) | ||
publishTo := { val nexus = "https://s01.oss.sonatype.org/" | ||
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots") | ||
else Some("releases" at nexus + "service/local/staging/deploy/maven2") } | ||
) |