Go to file
R. Tyler Croy fe5a55d754
Introduce some GradleTestKit-based tests and the supporting infra to run them
Some of this was unapologetically pilfered from the core plugins
2015-08-14 11:24:32 -07:00
buildSrc Introduce some GradleTestKit-based tests and the supporting infra to run them 2015-08-14 11:24:32 -07:00
examples/word-count Introduce some GradleTestKit-based tests and the supporting infra to run them 2015-08-14 11:24:32 -07:00
gradle Introduce some GradleTestKit-based tests and the supporting infra to run them 2015-08-14 11:24:32 -07:00
src Introduce some GradleTestKit-based tests and the supporting infra to run them 2015-08-14 11:24:32 -07:00
.gitignore Upgrade to Gradle 2.6 for development 2015-08-10 08:58:48 -07:00
.travis.yml Add travis.yml so we can start testing properly again 2015-07-26 22:06:18 -07:00
LICENSE Properly copyright this work 2014-09-16 15:17:41 -07:00
README.adoc Add travis.yml so we can start testing properly again 2015-07-26 22:06:18 -07:00
build.gradle Introduce some GradleTestKit-based tests and the supporting infra to run them 2015-08-14 11:24:32 -07:00
gradle.properties Introduce some GradleTestKit-based tests and the supporting infra to run them 2015-08-14 11:24:32 -07:00
gradlew Add gradle wrappers 2014-09-16 15:18:19 -07:00
gradlew.bat Add gradle wrappers 2014-09-16 15:18:19 -07:00

README.adoc

<html lang="en"> <head> </head>

JRuby/Gradle Storm Plugin

JRuby/Gradle plugin to manage creating Storm topology jars

Usage

NOTE: This plugin is stili in a very early stages.

Including the plugin:

buildscript {
    repositories { jcenter() }
    dependencies {
        classpath "com.github.jruby-gradle:jruby-gradle-storm-plugin:0.2.0"
    }
}

Running a "local topology"

The JRubyStormLocal task provides the underlying machinery to run a Redstorm topology in "local" mode:

import com.github.jrubygradle.storm.JRubyStormLocal

task runLocalTopology(type: JRubyStormLocal) {
  // path is considered relative to the working directory
  // the task is executed in
  topology 'topologies/example_topology.rb'
}

Then you can run the local topology with: ./gradlew runLocalTopology

Note
The Gradle script will block until the local topology is terminated (Ctrl+C)

Creating a topolog .jar

Creating a topology .jar file is useflu when you plan on uploading your topology to a running Storm cluster. Currently this plugin will only create that jar for you, it will not upload it.

By default the plugin will include bolts/ and /topologies/ in the generated .jar file.

  • ./gradlew jrubyStorm will create a .jar in build/libs/

</html>