Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use a 'cuke' configuration for Cucumber

  • Loading branch information...
commit c2a10a8710a7ab87ff8b5dd08844e1c4046a56b4 1 parent 1e67333
Robert Fischer authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/main/groovy/CukePlugin.groovy
View
8 src/main/groovy/CukePlugin.groovy
@@ -9,7 +9,13 @@ class CukePlugin extends SjitPlugin {
project.usePlugin(RunJRubyPlugin)
project.convention.plugins.cuke = new CukePluginConvention()
project.convention.plugins.cuke.featuresDir = "src/test/features"
- project.convention.plugins.cuke.configs = ['jruby', 'runtime', 'testRuntime']
+ project.convention.plugins.cuke.configs = ['cuke']
+ project.configurations {
+ cuke {
+ extendsFrom testRuntime, runtime, jruby
+ ['test', 'main'].each { sourceSet."$it".classes }
+ }
+ }
project.task('runFeatures') << {
project.useGem('cucumber')
Please sign in to comment.
Something went wrong with that request. Please try again.