47degrees / sbt-embedded-cassandra   0.0.7

Apache License 2.0 GitHub

Simple plugin for starting an embedded Cassandra instance from SBT

Scala versions: 2.10 2.12
sbt plugins: 0.13 1.0

THIS PROJECT IS DISCONTINUED — USE AT YOUR OWN RISK

It has been a fun and great project but it's time for us to move on. Check out our recent work that we are doing with Scala and follow us on Github and Twitter for new and exciting open source projects. Thanks for your continuing support. If you wish to take on maintenance of this library please contact us through the issue tracker.

Maven Central License GitHub Issues

sbt-embedded-cassandra

sbt-embedded-cassandra is an SBT plugin that allows to you to start an embedded Cassandra instance.

The goal of this project is to provide a way to add integration tests using Cassandra, supporting the latest versions and keeping the plugin simple as possible.

Usage

Add to plugins.sbt

addSbtPlugin("com.47deg" % "sbt-embedded-cassandra" % "0.0.7")

Start Cassandra from SBT

> embeddedCassandraStart

Customization

  • embeddedCassandraWorkingDirectorySetting: File: Output directory for Cassandra. target/Cassandra by default.

  • embeddedCassandraPropertiesSetting: Map[String, String]: Properties to replace in the cassandra.yml template. Internally, the plugin will add a new property to the map named workingDirectory with the value of the previous setting.

  • embeddedCassandraConfigFileSetting: Option[File]: Defines a custom template config file, None by default. When this setting is None it will use the following template from the resources

  • embeddedCassandraCQLFileSetting: Option[File]: Defines a CQL file with statements ended with ; that will be executed after starting the service.

Supported Cassandra version

Check the version of cassandra-all library currenly supported and take a look to the current issues to stay informed about latest improvements and limitations.

sbt-embedded-cassandra in the wild not found

If you wish to add your library here please consider a PR to include it.

Copyright

sbt-embedded-cassandra is designed and developed by 47 Degrees

Copyright (C) 2017-2018 47 Degrees. http://47deg.com