Skip to content

Commit

Permalink
added project accessor; for some reason, auto-complete for sub-classe…
Browse files Browse the repository at this point in the history
…s is not working unless accessor is declared here
  • Loading branch information
mlueders committed Aug 8, 2014
1 parent c01dedb commit 32704f3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package com.bancvue.gradle.test

import org.gradle.api.Plugin
import org.gradle.api.Project

abstract class AbstractPluginSpecification extends AbstractProjectSpecification {

Expand All @@ -25,6 +26,10 @@ abstract class AbstractPluginSpecification extends AbstractProjectSpecification

abstract String getPluginName();

protected Project getProject() {
super.project
}

protected void applyPlugin() {
project.apply(plugin: pluginName)
}
Expand Down

0 comments on commit 32704f3

Please sign in to comment.