Cassandra Gradle plugin

Gradle plugin for running an embedded instance of Cassandra.

Лицензия

Лицензия

NONE
Категории

Категории

Gradle Компиляция и сборка Cassandra Данные Базы данных
Группа

Группа

com.github.william-hill-online
Идентификатор

Идентификатор

cassandra-gradle-plugin
Последняя версия

Последняя версия

0.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

Cassandra Gradle plugin
Gradle plugin for running an embedded instance of Cassandra.
Ссылка на сайт

Ссылка на сайт

https://github.com/William-Hill-Online/cassandra-gradle-plugin
Система контроля версий

Система контроля версий

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

Скачать cassandra-gradle-plugin

Как подключить последнюю версию

<!-- 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"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
org.spockframework : spock-core jar 1.1-groovy-2.4

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
0.3