From b241777e699e492dd1426ef118cd9712e4435243 Mon Sep 17 00:00:00 2001 From: Bago Amirbekian Date: Fri, 28 Dec 2018 15:04:36 -0800 Subject: [PATCH 1/2] Add credential file & update spark-packages plugin to be able to publish artificts using release.py script. --- build.sbt | 2 ++ project/plugins.sbt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index cf83b793..9984cbba 100644 --- a/build.sbt +++ b/build.sbt @@ -113,3 +113,5 @@ releaseProcess := Seq[ReleaseStep]( test in assembly := {} assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false) + +credentials += Credentials(Path.userHome / ".spark-packages-credential") diff --git a/project/plugins.sbt b/project/plugins.sbt index 89f028f9..3e97ca0f 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,6 +1,6 @@ // You may use this file to add plugin dependencies for sbt. resolvers += "Spark Packages repo" at "https://dl.bintray.com/spark-packages/maven/" -addSbtPlugin("org.spark-packages" %% "sbt-spark-package" % "0.2.5") +addSbtPlugin("org.spark-packages" %% "sbt-spark-package" % "0.2.6") // scalacOptions in (Compile,doc) := Seq("-groups", "-implicits") addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0") From 8c5fef51caf231dee841a6b8042ae35b78c77780 Mon Sep 17 00:00:00 2001 From: Bago Amirbekian Date: Wed, 16 Jan 2019 10:42:04 -0800 Subject: [PATCH 2/2] Use spDist for publish. --- build.sbt | 2 -- dev/release.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 9984cbba..cf83b793 100644 --- a/build.sbt +++ b/build.sbt @@ -113,5 +113,3 @@ releaseProcess := Seq[ReleaseStep]( test in assembly := {} assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false) - -credentials += Credentials(Path.userHome / ".spark-packages-credential") diff --git a/dev/release.py b/dev/release.py index b0853695..6483b47e 100755 --- a/dev/release.py +++ b/dev/release.py @@ -9,7 +9,7 @@ PUBLISH_MODES = { "local": "publishLocal", "m2": "publishM2", - "spark-package-publish": "spPublish", + "spark-package-publish": "spDist", } PUBLISH_DOCS_DEFAULT = True