Rename the 'prepareAppServerForIntegrationTests' Gradle Task to 'prepareAppServerBeforeIntegrationTests'.

Rename the GemFireServerTask greeting() @TaskAction annotated method to run().
This commit is contained in:
John Blum
2022-06-21 18:55:35 -07:00
parent 8061b1bdea
commit 03fac607b0
2 changed files with 5 additions and 4 deletions

View File

@@ -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]..."

View File

@@ -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 ->