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) }