Go to file
R. Tyler Croy fce4bb3488 Remove bolts/ from the default topology jar 2014-11-15 08:46:19 -08:00
gradle/wrapper Bump the default version to 2.1 2014-10-20 11:10:25 -07:00
src Remove bolts/ from the default topology jar 2014-11-15 08:46:19 -08:00
.gitignore Add a simple build.gradle file 2014-09-16 15:56:00 -07:00
LICENSE Properly copyright this work 2014-09-16 15:17:41 -07:00
README.md Add some examples in the readme 2014-10-23 10:34:42 -07:00
build.gradle Upgrade the base dependency to 0.1.8 which includes many newer fixes 2014-11-15 08:35:14 -08: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.md

jruby-gradle-storm-plugin

Build Status Gitter chat

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.1.3+'
    }
}  

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 topology .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/