Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
release rpm & deb packages to provde a more convenient installation experience
  • Loading branch information
splink committed Jan 2, 2020
1 parent ea98b66 commit 6f3a9d0
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 14 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,26 @@ Import Cassandra tables as JSON from stdin.
Using stdin/stdout opens the door to the land of pipes and thus enables to slice and dice the stream of JSON data using command line tools. Most useful for the processing of streamed json data will probably be the infamous [jq](https://github.com/stedolan/jq).


###### Download the [current release](https://github.com/splink/cpipe/releases/download/v0.0.1/cpipe-0.0.1.zip), unzip and run with
~~~bash
###### Download the [current release]
as Zip: https://github.com/splink/cpipe/releases/download/v0.0.2/cpipe-0.0.2.zip
~~~bash
unzip cpipe-0.0.2.zip
./bin/cpipe --help
~~~

as Rpm: https://github.com/splink/cpipe/releases/download/v0.0.2/cpipe-0.0.2.noarch.rpm
~~~bash
rpm -i cpipe-0.0.2.noarch.rpm
cpipe --help
~~~

as deb: https://github.com/splink/cpipe/releases/download/v0.0.2/cpipe-0.0.2_all.deb
~~~bash
dpkg -i cpipe-0.0.2.noarch.rpm
cpipe --help
~~~


[![asciicast](https://asciinema.org/a/XLXvSasorNPkMHH5isH5U0KKq.svg)](https://asciinema.org/a/XLXvSasorNPkMHH5isH5U0KKq?autoplay=1&loop=1)

Build from source with [SBT](https://www.scala-sbt.org):
Expand Down
20 changes: 16 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,26 @@ import scala.sys.process._

lazy val root = (project in file(".")).
enablePlugins(BuildInfoPlugin).
enablePlugins(JavaAppPackaging).
enablePlugins(JavaAppPackaging, RpmPlugin, DebianPlugin).
settings(
List(
maintainer := "maxmc",
organization := "splink",
scalaVersion := "2.12.7",
scalaVersion := "2.12.8",
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion, "commitId" -> "git rev-parse HEAD".!!.slice(0, 10)),
buildInfoPackage := "org.splink.cpipe.config"
) ++ releaseSettings ++ githubReleaseSettings,
fork in run := true,
name := "cpipe",
libraryDependencies ++= Seq(
rpmVendor := "splink",
rpmPackager := Some("splink"),
packageSummary := "Import/Export rows from a Cassandra database.",
packageDescription := "Import/Export rows from a Cassandra database. Run 'cpipe --help' for more information.",
rpmLicense := Some("Apache License Version 2.0"),
packageName := "cpipe",
packageArchitecture := "noarch",
debianPackageDependencies := Seq("java8-runtime-headless"),
libraryDependencies ++= Seq(
logback,
scallop,
cassandra,
Expand All @@ -37,6 +45,8 @@ lazy val releaseSettings = Seq(
commitReleaseVersion,
tagRelease,
pushChanges,
releaseStepCommand("debian:packageBin"),
releaseStepCommand("rpm:packageBin"),
releaseStepCommand("universal:packageBin"),
releaseStepCommand("githubRelease"),
setNextVersion,
Expand All @@ -49,7 +59,9 @@ lazy val githubReleaseSettings = Seq(
ghreleaseRepoOrg := organization.value,
ghreleaseRepoName := name.value,
ghreleaseAssets := Seq(
target.value / "universal" / s"${name.value}-${version.value}.zip"
target.value / "universal" / s"${name.value}-${version.value}.zip",
target.value / s"${name.value}_${version.value}_all.deb",
target.value / "rpm/RPMS" / packageArchitecture.value / s"${name.value}-${version.value}-1.${packageArchitecture.value}.rpm",
),
ghreleaseNotes := { tagName
SimpleReader.readLine(s"Input release notes for $tagName: ").getOrElse("")
Expand Down
2 changes: 1 addition & 1 deletion cpipe
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
./target/universal/stage/bin/cpipe $@
$(dirname "${BASH_SOURCE[0]}")/target/universal/cpipe-0.0.2/bin/cpipe $@
8 changes: 4 additions & 4 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import sbt._

object Dependencies {
lazy val scalaTest = "org.scalatest" %% "scalatest" % "3.0.5"
lazy val playJson = "com.typesafe.play" %% "play-json" % "2.6.9"
lazy val cassandra = "com.datastax.cassandra" % "cassandra-driver-core" % "3.6.0"
lazy val scallop = "org.rogach" %% "scallop" % "3.1.3"
lazy val scalaTest = "org.scalatest" %% "scalatest" % "3.1.0"
lazy val playJson = "com.typesafe.play" %% "play-json" % "2.8.1"
lazy val cassandra = "com.datastax.cassandra" % "cassandra-driver-core" % "3.8.0"
lazy val scallop = "org.rogach" %% "scallop" % "3.2.0"
lazy val logback = "ch.qos.logback" % "logback-classic" % "1.2.3"
lazy val lz4 = "net.jpountz.lz4" % "lz4" % "1.3.0"
}
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.2.3
sbt.version=1.3.5
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.10")
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.5.2")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.10")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
addSbtPlugin("ohnosequences" % "sbt-github-release" % "0.7.0")
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "0.0.2-SNAPSHOT"
version in ThisBuild := "0.0.2"

0 comments on commit 6f3a9d0

Please sign in to comment.