diff --git a/buildSrc/src/main/groovy/build/GemFireServerPlugin.groovy b/buildSrc/src/main/groovy/build/GemFireServerPlugin.groovy index 8f38bd0..c991619 100644 --- a/buildSrc/src/main/groovy/build/GemFireServerPlugin.groovy +++ b/buildSrc/src/main/groovy/build/GemFireServerPlugin.groovy @@ -42,7 +42,7 @@ class GemFireServerPlugin implements Plugin { } } - 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 { boolean debug @TaskAction - def greet() { + def run() { port = availablePort() println "Starting Apache Geode Server on port [$port]..." diff --git a/buildSrc/src/main/groovy/io/spring/gradle/convention/SpringSampleWarPlugin.groovy b/buildSrc/src/main/groovy/io/spring/gradle/convention/SpringSampleWarPlugin.groovy index da15026..eea9483 100644 --- a/buildSrc/src/main/groovy/io/spring/gradle/convention/SpringSampleWarPlugin.groovy +++ b/buildSrc/src/main/groovy/io/spring/gradle/convention/SpringSampleWarPlugin.groovy @@ -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 ->