From 19728f5636155f5ca23fbaa9fed047bb716bd383 Mon Sep 17 00:00:00 2001 From: ozan Date: Fri, 28 Feb 2020 22:03:02 +0900 Subject: [PATCH] 0.1.0 release --- build.sbt | 51 +++++++++++++++++++++++++++++++++++++++------ project/plugins.sbt | 8 +++++++ 2 files changed, 53 insertions(+), 6 deletions(-) diff --git a/build.sbt b/build.sbt index c143996..8c79925 100644 --- a/build.sbt +++ b/build.sbt @@ -10,6 +10,14 @@ val sparkVer = sys.props.getOrElse("spark.version", defaultSparkVersion) val components = Seq("streaming", "sql", "mllib") +val shortDesc = "Bayesian filtering with Spark" + +val longDesc = """Model-parallel bayesian filtering with Apache Spark. + | + |This library allows you to define model-parallel bayesian filters by leveraging arbitrary stateful + |transformation capabilities of Spark DataFrames. Supports both structured streaming and + |batch processing mode. Suitable for latent state estimation of many similar small scale systems + |rather than a big single system.""".stripMargin lazy val settings = Seq( scalaVersion := scalaVer, @@ -26,6 +34,10 @@ lazy val root = (project in file(".")) .settings( name := "artan", fork in run := true, + (packageBin in Compile) := { + println("here") + spPackage.value + }, settings) lazy val examples = (project in file("examples")) @@ -46,14 +58,41 @@ spName := "ozancicek/artan" credentials += Credentials(Path.userHome / ".ivy2" / ".sparkpackagescredentials") +credentials += Credentials(Path.userHome / ".ivy2" / ".sonatypecredentials") + spShortDescription := "Bayesian filtering with Spark" -spDescription := """Model-parallel bayesian filtering with Apache Spark. - | - |This library allows you to define model-parallel bayesian filters by leveraging arbitrary stateful - |transformation capabilities of Spark DataFrames. Supports both structured streaming and - |batch processing mode. Suitable for latent state estimation of many similar small scale systems - |rather than a big single system.""".stripMargin +spDescription := shortDesc licenses += "Apache-2.0" -> url("http://opensource.org/licenses/Apache-2.0") +homepage := Some(url("https://github.com/ozancicek/artan")) + +publishMavenStyle := true + +publishArtifact in Test := false + +pomIncludeRepository := { _ => false } + +publishTo in ThisBuild := { + 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") + } +} +scmInfo := Some( + ScmInfo( + url("https://github.com/ozancicek/artan"), + "scm:git:git@github.com:ozancicek/artan.git" + ) +) + +description := shortDesc + +developers := List( + Developer("ozancicek", "Ozan Cicekci", "ozancancicekci@gmail.com", url("https://github.com/ozancicek")) +) + + diff --git a/project/plugins.sbt b/project/plugins.sbt index c674fb4..f841709 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -8,3 +8,11 @@ addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0") addSbtPlugin("org.spark-packages" % "sbt-spark-package" % "0.2.6") addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1") + +addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.1") + +addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.4") + +addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.1.0") + +addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1") \ No newline at end of file