Skip to content

Commit

Permalink
Refactor with new package name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shina committed Jun 24, 2019
1 parent 29cec4a commit 5591332
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 16 deletions.
23 changes: 13 additions & 10 deletions build.sbt
Expand Up @@ -16,7 +16,7 @@
*/

name := "spark-bigquery"
organization := "com.shina"
organization := "io.github.odidere"
scalaVersion := "2.11.11"
crossScalaVersions := Seq("2.10.6", "2.11.11")

Expand All @@ -25,6 +25,7 @@ sparkVersion := "2.2.0"
sparkComponents := Seq("core", "sql")
spAppendScalaVersion := true
spIncludeMaven := true
useGpg := false

libraryDependencies ++= Seq(
"com.databricks" %% "spark-avro" % "4.0.0",
Expand All @@ -43,15 +44,15 @@ assemblyMergeStrategy in assembly := {

}

ThisBuild / organization := "com.shina"
organization := "io.github.odidere"

ThisBuild / scmInfo := Some(
scmInfo := Some(
ScmInfo(
url("https://github.com/odidere/spark-bigquery"),
"scm:git@github.com/odidere/spark-bigquery.git"
)
)
ThisBuild / developers := List(
developers := List(
Developer(
id = "odidere",
name = "Oluwashina Aladejubelo",
Expand All @@ -60,15 +61,17 @@ ThisBuild / developers := List(
)
)

ThisBuild / description := "Spark BigQuery Lirary."
ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
ThisBuild / homepage := Some(url("https://github.com/odidere/spark-bigquery"))
description := "Spark BigQuery Lirary."
licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
homepage := Some(url("https://github.com/odidere/spark-bigquery"))

// Remove all additional repository other than Maven Central from POM
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishTo := {
pomIncludeRepository := { _ => false }
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / publishMavenStyle := true
publishMavenStyle := true


4 changes: 2 additions & 2 deletions project/plugins.sbt
@@ -1,7 +1,7 @@
resolvers += "bintray-spark-packages" at "https://dl.bintray.com/spark-packages/maven/"
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.6")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
addSbtPlugin("org.scalastyle" % "scalastyle-sbt-plugin" % "0.9.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0")
addSbtPlugin("org.spark-packages" % "sbt-spark-package" % "0.2.6")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
Expand Up @@ -15,7 +15,7 @@
* under the License.
*/

package com.shina.spark.bigquery
package io.github.odidere.spark.bigquery

import com.google.api.services.bigquery.model.TableReference
import com.google.cloud.hadoop.io.bigquery.{BigQueryConfiguration, BigQueryStrings}
Expand Down
Expand Up @@ -15,7 +15,7 @@
* under the License.
*/

package com.shina.spark.bigquery
package io.github.odidere.spark.bigquery

import com.databricks.spark.avro.SchemaConverters
import com.google.api.services.bigquery.model.TableReference
Expand Down
Expand Up @@ -15,7 +15,7 @@
* under the License.
*/

package com.shina.spark
package io.github.odidere.spark

import org.apache.spark.sql.{DataFrame, SQLContext}
import scala.language.implicitConversions
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
@@ -1 +1 @@
version in ThisBuild := "0.2.3-SNAPSHOT"
version in ThisBuild := "0.2.3"

0 comments on commit 5591332

Please sign in to comment.