From 32704f3ccf2b65bcc0e44c83b480acf1019f7d2a Mon Sep 17 00:00:00 2001 From: Mike Lueders Date: Thu, 7 Aug 2014 20:32:45 -0500 Subject: [PATCH] added project accessor; for some reason, auto-complete for sub-classes is not working unless accessor is declared here --- .../bancvue/gradle/test/AbstractPluginSpecification.groovy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mainTest/groovy/com/bancvue/gradle/test/AbstractPluginSpecification.groovy b/src/mainTest/groovy/com/bancvue/gradle/test/AbstractPluginSpecification.groovy index 60c28f0..d24ab0f 100644 --- a/src/mainTest/groovy/com/bancvue/gradle/test/AbstractPluginSpecification.groovy +++ b/src/mainTest/groovy/com/bancvue/gradle/test/AbstractPluginSpecification.groovy @@ -16,6 +16,7 @@ package com.bancvue.gradle.test import org.gradle.api.Plugin +import org.gradle.api.Project abstract class AbstractPluginSpecification extends AbstractProjectSpecification { @@ -25,6 +26,10 @@ abstract class AbstractPluginSpecification extends AbstractProjectSpecification abstract String getPluginName(); + protected Project getProject() { + super.project + } + protected void applyPlugin() { project.apply(plugin: pluginName) }