Skip to content

Commit

Permalink
Add missing scmInfo, developers, and move "publishTo" to be ThisBuild
Browse files Browse the repository at this point in the history
Getting 400s when trying to publish without this :-(
  • Loading branch information
arielshaqed committed Aug 23, 2023
1 parent f4824f5 commit 021118f
Showing 1 changed file with 50 additions and 5 deletions.
55 changes: 50 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,15 @@ libraryDependencies ++= Seq(

val nexus = "https://s01.oss.sonatype.org/"
lazy val publishSettings = Seq(
publishTo := {
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
// Remove all additional repository other than Maven Central from POM
pomIncludeRepository := { _ => false },
credentials ++= Seq(
Credentials(Path.userHome / ".sbt" / "credentials"),
Credentials(Path.userHome / ".sbt" / "sonatype_credentials")
)
),
)

ThisBuild / publishConfiguration := publishConfiguration.value.withOverwrite(true)
ThisBuild / isSnapshot := false
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / organization := "io.lakefs"
Expand All @@ -45,3 +42,51 @@ ThisBuild / licenses := List(
"Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")
)
ThisBuild / homepage := Some(url("https://lakefs.io"))
ThisBuild / publishTo := {
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/treeverse/lakefs-spark-extensions"),
"scm:git@github.com:treeverse/lakefs-spark-extensions.git"
)
)
ThisBuild / developers := List(
Developer(
id = "ariels",
name = "Ariel Shaqed (Scolnicov)",
email = "ariels@treeverse.io",
url = url("https://github.com/arielshaqed")
),
Developer(
id = "baraktr",
name = "B. A.",
email = "barak.amar@treeverse.io",
url = url("https://github.com/nopcoder")
),
Developer(
id = "ozkatz",
name = "Oz Katz",
email = "oz.katz@treeverse.io",
url = url("https://github.com/ozkatz")
),
Developer(
id = "johnnyaug",
name = "J. A.",
email = "yoni.augarten@treeverse.io",
url = url("https://github.com/johnnyaug")
),
Developer(
id = "itai.admi",
name = "Itai Admi",
email = "itai.admi@treeverse.io",
url = url("https://github.com/itaiad200")
),
Developer(
id = "niro",
name = "Nir Ozery",
email = "nir.ozery@treeverse.io",
url = url("https://github.com/N-o-Z")
)
)

0 comments on commit 021118f

Please sign in to comment.