Cassandra Gradle plugin

Gradle plugin for running an embedded instance of Cassandra.

License

License

NONE
Categories

Categories

Gradle Build Tools Cassandra Data Databases
GroupId

GroupId

com.github.william-hill-online
ArtifactId

ArtifactId

cassandra-gradle-plugin
Last Version

Last Version

0.3
Release Date

Release Date

Type

Type

jar
Description

Description

Cassandra Gradle plugin
Gradle plugin for running an embedded instance of Cassandra.
Project URL

Project URL

https://github.com/William-Hill-Online/cassandra-gradle-plugin
Source Code Management

Source Code Management

https://github.com/William-Hill-Online/cassandra-gradle-plugin

Download cassandra-gradle-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.william-hill-online/cassandra-gradle-plugin/ -->
<dependency>
    <groupId>com.github.william-hill-online</groupId>
    <artifactId>cassandra-gradle-plugin</artifactId>
    <version>0.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.william-hill-online/cassandra-gradle-plugin/
implementation 'com.github.william-hill-online:cassandra-gradle-plugin:0.3'
// https://jarcasting.com/artifacts/com.github.william-hill-online/cassandra-gradle-plugin/
implementation ("com.github.william-hill-online:cassandra-gradle-plugin:0.3")
'com.github.william-hill-online:cassandra-gradle-plugin:jar:0.3'
<dependency org="com.github.william-hill-online" name="cassandra-gradle-plugin" rev="0.3">
  <artifact name="cassandra-gradle-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.william-hill-online', module='cassandra-gradle-plugin', version='0.3')
)
libraryDependencies += "com.github.william-hill-online" % "cassandra-gradle-plugin" % "0.3"
[com.github.william-hill-online/cassandra-gradle-plugin "0.3"]

Dependencies

test (1)

Group / Artifact Type Version
org.spockframework : spock-core jar 1.1-groovy-2.4

Project Modules

There are no modules declared in this project.

Build Status Maven Central

Gradle Cassandra Plugin

The Gradle Cassandra Plugin allows you to run an embedded instance of Cassandra from your gradle build. It is based on the Cassandra Unit.

Plugin is available on the Gradle Plugin Portal.

Usage

Enable the plugin in your gradle build:

plugins {
  id 'com.williamhill.cassandra' version '0.4'
}

You can now declare a dependency on a running Cassandra instance from any of your tasks:

task integrationTest(type: Test) {
    runWithCassandra = true
}

Configuration

Configure your Cassandra instance inside a cassandra block:

cassandra {
    port 9042
    schemaFilePath "src/test/resources/schema.cql"
    ...
}

The cassandra configuration block can be declared at either the project or the task level. Task-level configuration inherits from any project-level configuration provided.

The following properties are configurable:

Tasks

For your convenience the plugin also adds the following tasks to your buildscript:

$ gradle tasks
...
Cassandra tasks
-----------
startCassandra - Starts a local Cassandra instance
stopCassandra - Stops the local Cassandra instance
...

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

com.github.william-hill-online

William Hill Online

Versions

Version
0.3