-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update sbt to 1.2.0, update plugin deps, re-sync sbt syntax
- Loading branch information
1 parent
a0282e0
commit 10b24f2
Showing
5 changed files
with
65 additions
and
58 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
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 |
---|---|---|
@@ -1,12 +1,17 @@ | ||
// xsbt clean unidoc previewSite | ||
// xsbt clean unidoc ghpagesPushSite | ||
// xsbt -Dsbt.global.base=/home/eje/.sbt/sonatype +publish | ||
// make sure sparkVersion and pythonVersion are set as you want them prior to +publish | ||
|
||
import scala.sys.process._ | ||
|
||
name := "isarn-sketches-spark" | ||
|
||
organization := "org.isarnproject" | ||
|
||
bintrayOrganization := Some("isarn") | ||
val packageVersion = "0.3.1" | ||
|
||
val packageVersion = "0.4.0-SNAPSHOT" | ||
|
||
val sparkVersion = "2.2.0" | ||
val sparkVersion = "2.2.2" | ||
|
||
val pythonVersion = "2.7" | ||
|
||
|
@@ -18,11 +23,9 @@ val pythonCMD = s"""python${pythonVersion.split('.').head}""" | |
|
||
version := s"${packageVersion}-${sparkSuffix}-${pythonSuffix}" | ||
|
||
scalaVersion := "2.11.8" | ||
|
||
crossScalaVersions := Seq("2.10.6", "2.11.8") | ||
scalaVersion := "2.11.12" | ||
|
||
useGpg := true | ||
crossScalaVersions := Seq("2.11.12") // scala 2.12 when spark supports it | ||
|
||
pomIncludeRepository := { _ => false } | ||
|
||
|
@@ -56,36 +59,34 @@ developers := List( | |
) | ||
) | ||
|
||
def commonSettings = Seq( | ||
libraryDependencies ++= Seq( | ||
"org.isarnproject" %% "isarn-sketches" % "0.1.1", | ||
"org.apache.spark" %% "spark-core" % sparkVersion % Provided, | ||
"org.apache.spark" %% "spark-sql" % sparkVersion % Provided, | ||
"org.apache.spark" %% "spark-mllib" % sparkVersion % Provided, | ||
"org.isarnproject" %% "isarn-scalatest" % "0.0.2" % Test, | ||
"org.scalatest" %% "scalatest" % "2.2.4" % Test, | ||
"org.apache.commons" % "commons-math3" % "3.6.1" % Test), | ||
initialCommands in console := """ | ||
|import org.apache.spark.SparkConf | ||
|import org.apache.spark.SparkContext | ||
|import org.apache.spark.sql.SparkSession | ||
|import org.apache.spark.SparkContext._ | ||
|import org.apache.spark.rdd.RDD | ||
|import org.apache.spark.ml.linalg.Vectors | ||
|import org.isarnproject.sketches.TDigest | ||
|import org.isarnproject.sketches.udaf._ | ||
|import org.apache.spark.isarnproject.sketches.udt._ | ||
|val initialConf = new SparkConf().setAppName("repl").set("spark.serializer", "org.apache.spark.serializer.KryoSerializer").set("spark.kryoserializer.buffer", "16mb") | ||
|val spark = SparkSession.builder.config(initialConf).master("local[2]").getOrCreate() | ||
|import spark._, spark.implicits._ | ||
|val sc = spark.sparkContext | ||
|import org.apache.log4j.{Logger, ConsoleAppender, Level} | ||
|Logger.getRootLogger().getAppender("console").asInstanceOf[ConsoleAppender].setThreshold(Level.WARN) | ||
""".stripMargin, | ||
cleanupCommands in console := "spark.stop" | ||
) | ||
|
||
seq(commonSettings:_*) | ||
libraryDependencies ++= Seq( | ||
"org.isarnproject" %% "isarn-sketches" % "0.1.2", | ||
"org.apache.spark" %% "spark-core" % sparkVersion % Provided, | ||
"org.apache.spark" %% "spark-sql" % sparkVersion % Provided, | ||
"org.apache.spark" %% "spark-mllib" % sparkVersion % Provided, | ||
"org.isarnproject" %% "isarn-scalatest" % "0.0.3" % Test, | ||
"org.scalatest" %% "scalatest" % "3.0.5" % Test, | ||
"org.apache.commons" % "commons-math3" % "3.6.1" % Test) | ||
|
||
initialCommands in console := """ | ||
|import org.apache.spark.SparkConf | ||
|import org.apache.spark.SparkContext | ||
|import org.apache.spark.sql.SparkSession | ||
|import org.apache.spark.SparkContext._ | ||
|import org.apache.spark.rdd.RDD | ||
|import org.apache.spark.ml.linalg.Vectors | ||
|import org.isarnproject.sketches.TDigest | ||
|import org.isarnproject.sketches.udaf._ | ||
|import org.apache.spark.isarnproject.sketches.udt._ | ||
|val initialConf = new SparkConf().setAppName("repl").set("spark.serializer", "org.apache.spark.serializer.KryoSerializer").set("spark.kryoserializer.buffer", "16mb") | ||
|val spark = SparkSession.builder.config(initialConf).master("local[2]").getOrCreate() | ||
|import spark._, spark.implicits._ | ||
|val sc = spark.sparkContext | ||
|import org.apache.log4j.{Logger, ConsoleAppender, Level} | ||
|Logger.getRootLogger().getAppender("console").asInstanceOf[ConsoleAppender].setThreshold(Level.WARN) | ||
""".stripMargin | ||
|
||
cleanupCommands in console := "spark.stop" | ||
|
||
licenses += ("Apache-2.0", url("http://opensource.org/licenses/Apache-2.0")) | ||
|
||
|
@@ -118,9 +119,9 @@ compilePython := { | |
} | ||
} | ||
|
||
compilePython <<= compilePython.dependsOn(deletePYC) | ||
compilePython := (compilePython.dependsOn(deletePYC)).value | ||
|
||
(packageBin in Compile) <<= (packageBin in Compile).dependsOn(compilePython) | ||
(packageBin in Compile) := ((packageBin in Compile).dependsOn(compilePython)).value | ||
|
||
mappings in (Compile, packageBin) ++= Seq( | ||
(baseDirectory.value / "python" / "isarnproject" / "__init__.pyc") -> "isarnproject/__init__.pyc", | ||
|
@@ -142,13 +143,10 @@ assemblyShadeRules in assembly := Seq( | |
|
||
scalacOptions in (Compile, doc) ++= Seq("-doc-root-content", baseDirectory.value+"/root-doc.txt") | ||
|
||
site.settings | ||
|
||
site.includeScaladoc() | ||
enablePlugins(ScalaUnidocPlugin, GhpagesPlugin) | ||
|
||
// Re-enable if/when we want to support gh-pages w/ jekyll | ||
// site.jekyllSupport() | ||
siteSubdirName in ScalaUnidoc := "latest/api" | ||
|
||
ghpages.settings | ||
addMappingsToSiteDir(mappings in (ScalaUnidoc, packageDoc), siteSubdirName in ScalaUnidoc) | ||
|
||
git.remoteRepo := "[email protected]:isarn/isarn-sketches-spark.git" |
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 |
---|---|---|
@@ -1 +1 @@ | ||
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.4") | ||
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.7") |
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 |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=0.13.11 | ||
sbt.version=1.2.0 |
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