Rename the 'prepareAppServerForIntegrationTests' Gradle Task to 'prepareAppServerBeforeIntegrationTests'.
Rename the GemFireServerTask greeting() @TaskAction annotated method to run().
This commit is contained in:
@@ -42,7 +42,7 @@ class GemFireServerPlugin implements Plugin<Project> {
|
||||
}
|
||||
}
|
||||
|
||||
project.tasks.findByName("prepareAppServerForIntegrationTests")?.configure { task ->
|
||||
project.tasks.findByName("prepareAppServerBeforeIntegrationTests")?.configure { task ->
|
||||
task.dependsOn project.tasks.gemfireServer
|
||||
task.doFirst {
|
||||
project.gretty {
|
||||
@@ -76,7 +76,7 @@ class GemFireServerPlugin implements Plugin<Project> {
|
||||
boolean debug
|
||||
|
||||
@TaskAction
|
||||
def greet() {
|
||||
def run() {
|
||||
|
||||
port = availablePort()
|
||||
println "Starting Apache Geode Server on port [$port]..."
|
||||
|
||||
@@ -60,7 +60,7 @@ class SpringSampleWarPlugin extends SpringSamplePlugin {
|
||||
}
|
||||
}
|
||||
|
||||
Task prepareAppServerForIntegrationTests = project.tasks.create('prepareAppServerForIntegrationTests') {
|
||||
Task prepareAppServerBeforeIntegrationTests = project.tasks.create('prepareAppServerBeforeIntegrationTests') {
|
||||
group = 'Verification'
|
||||
description = 'Prepares the Web application server for Integration Testing'
|
||||
doFirst {
|
||||
@@ -71,8 +71,9 @@ class SpringSampleWarPlugin extends SpringSamplePlugin {
|
||||
}
|
||||
}
|
||||
|
||||
// Gretty Gradle Plugin Task.
|
||||
project.tasks.matching { it.name == "appBeforeIntegrationTest" }.all { task ->
|
||||
task.dependsOn prepareAppServerForIntegrationTests
|
||||
task.dependsOn prepareAppServerBeforeIntegrationTests
|
||||
}
|
||||
|
||||
project.tasks.withType(Test).all { task ->
|
||||
|
||||
Reference in New Issue
Block a user