Skip to content

Commit

Permalink
Merge pull request #6 from treeverse/chore/fix-publish
Browse files Browse the repository at this point in the history
Actually publish the right project
  • Loading branch information
arielshaqed authored Oct 18, 2023
2 parents f4824f5 + 9c5307c commit f67618e
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 10 deletions.
70 changes: 70 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# This is https://raw.githubusercontent.com/scala/scala/2.13.x/.gitignore

# Are you tempted to edit this file?
#
# First consider if the changes make sense for all,
# or if they are specific to your workflow/system.
# If it is the latter, you can augment this list with
# entries in .git/info/excludes
#
# see also test/files/.gitignore
#

#
# JARs aren't checked in, they are fetched by sbt
#
/lib/*.jar
/test/files/codelib/*.jar
/test/files/lib/*.jar
/test/files/speclib/instrumented.jar
/tools/*.jar

# Developer specific properties
/build.properties
/buildcharacter.properties

# might get generated when testing Jenkins scripts locally
/jenkins.properties

# target directory for build
/build/

# other
/out/
/bin/
/sandbox/

# intellij
/src/intellij*/*.iml
/src/intellij*/*.ipr
/src/intellij*/*.iws
**/.cache
/.idea
/.settings

# vscode
/.vscode

# Standard symbolic link to build/quick/bin
/qbin

# sbt's target directories
/target/
/project/**/target/
/test/macro-annot/target/
/test/files/target/
/test/target/
/build-sbt/
local.sbt
jitwatch.out

# Used by the restarr/restarrFull commands as target directories
/build-restarr/
/target-restarr/

# metals
.metals
.bloop
project/**/metals.sbt

.bsp
62 changes: 52 additions & 10 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
lazy val projectVersion = "0.0.1"
lazy val projectVersion = "0.0.3-RC.0"

lazy val project = Project("lakefs-spark-extension", file("./src/"))
.settings(
version := projectVersion,
)
version := projectVersion

semanticdbEnabled := true
semanticdbVersion := scalafixSemanticdb.revision
Expand All @@ -23,18 +20,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 +39,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:[email protected]:treeverse/lakefs-spark-extensions.git"
)
)
ThisBuild / developers := List(
Developer(
id = "ariels",
name = "Ariel Shaqed (Scolnicov)",
email = "[email protected]",
url = url("https://github.com/arielshaqed")
),
Developer(
id = "baraktr",
name = "B. A.",
email = "[email protected]",
url = url("https://github.com/nopcoder")
),
Developer(
id = "ozkatz",
name = "Oz Katz",
email = "[email protected]",
url = url("https://github.com/ozkatz")
),
Developer(
id = "johnnyaug",
name = "J. A.",
email = "[email protected]",
url = url("https://github.com/johnnyaug")
),
Developer(
id = "itai.admi",
name = "Itai Admi",
email = "[email protected]",
url = url("https://github.com/itaiad200")
),
Developer(
id = "niro",
name = "Nir Ozery",
email = "[email protected]",
url = url("https://github.com/N-o-Z")
)
)

0 comments on commit f67618e

Please sign in to comment.