From a3f4a6bb003062921c3e64a6b35b620400727663 Mon Sep 17 00:00:00 2001 From: "R. Tyler Croy" Date: Mon, 20 Oct 2014 14:43:58 -0700 Subject: [PATCH] Add a simple `spec` task for running RSpecs (largely failing) from Gradle --- build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.gradle b/build.gradle index a0d5ef1..b40dbf6 100644 --- a/build.gradle +++ b/build.gradle @@ -25,10 +25,14 @@ dependencies { compile group: 'org.apache.storm', name: 'storm-core', version: '0.9.2-incubating' + + jrubyExec group: 'rubygems', name: 'rspec', version: '2.13+' + jrubyExec group: 'rubygems', name: 'coveralls', version: '0.6.7+' } configurations { runtime.exclude module: 'storm-core' + jrubyExec.extendsFrom compile } sourceSets { @@ -61,5 +65,13 @@ jar { from 'lib' } +task spec(type: JRubyExec) { + group 'JRuby' + description 'Run the RSpec examples' + jrubyArgs '-S' + script 'rspec' +} + + // vim: ft=groovy et ts=4 sw=4