Set some default groups and descriptions on our packaging/run tasks
Fixes #19
This commit is contained in:
parent
ca083054b4
commit
b8f6b9886e
|
@ -74,10 +74,11 @@ class JRubyStorm extends DefaultTask {
|
||||||
JRubyStorm() {
|
JRubyStorm() {
|
||||||
super()
|
super()
|
||||||
configuration = project.configurations.maybeCreate(DEFAULT_CONFIGURATION_NAME)
|
configuration = project.configurations.maybeCreate(DEFAULT_CONFIGURATION_NAME)
|
||||||
this.group JRubyPlugin.TASK_GROUP_NAME
|
runTask = JRubyStormInternal.createRunTask(this.project, this)
|
||||||
this.runTask = JRubyStormInternal.createRunTask(this.project, this)
|
assembleTask = JRubyStormInternal.createAssembleTask(this.project, this)
|
||||||
this.assembleTask = JRubyStormInternal.createAssembleTask(this.project, this)
|
|
||||||
this.dependsOn assembleTask
|
dependsOn assembleTask
|
||||||
|
group JRubyPlugin.TASK_GROUP_NAME
|
||||||
|
|
||||||
project.afterEvaluate { this.updateDependencies() }
|
project.afterEvaluate { this.updateDependencies() }
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,6 +44,7 @@ class JRubyStormLocal extends JavaExec implements JRubyExecTraits {
|
||||||
JRubyStormLocal() {
|
JRubyStormLocal() {
|
||||||
super()
|
super()
|
||||||
super.setMain 'redstorm.TopologyLauncher'
|
super.setMain 'redstorm.TopologyLauncher'
|
||||||
|
description 'Execute the topology in "local" mode'
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -41,6 +41,7 @@ class JRubyStormJar extends JRubyJar {
|
||||||
JRubyStormJar() {
|
JRubyStormJar() {
|
||||||
super()
|
super()
|
||||||
appendix = ''
|
appendix = ''
|
||||||
|
description 'Package a Storm topology jar'
|
||||||
|
|
||||||
project.afterEvaluate {
|
project.afterEvaluate {
|
||||||
this.includeRedstorm()
|
this.includeRedstorm()
|
||||||
|
|
|
@ -142,6 +142,15 @@ class JRubyStormSpec extends Specification {
|
||||||
then:
|
then:
|
||||||
project.configurations.findByName(JRubyStorm.DEFAULT_CONFIGURATION_NAME)
|
project.configurations.findByName(JRubyStorm.DEFAULT_CONFIGURATION_NAME)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Issue('https://github.com/jruby-gradle/jruby-gradle-storm-plugin/issues/19')
|
||||||
|
def "group should be set by default on the sub-tasks"() {
|
||||||
|
given:
|
||||||
|
JRubyStorm task = project.task('spock', type: JRubyStorm)
|
||||||
|
|
||||||
|
expect:
|
||||||
|
task.assembleTask.group == task.group
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("For some reason these are running with DEBUG log level and it won't turn off")
|
@Ignore("For some reason these are running with DEBUG log level and it won't turn off")
|
||||||
|
|
Loading…
Reference in New Issue