Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.

Commit

Permalink
Support org.ajoberstar.grgit from release
Browse files Browse the repository at this point in the history
Fix #130 by allowing org.ajoberstar.release-base to use
org.ajoberstar.grgit, if applied instead of requiring
Grgit to be initialized explicitly.
  • Loading branch information
ajoberstar committed Aug 23, 2015
1 parent 1923b80 commit d24e043
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ class BaseReleasePlugin implements Plugin<Project> {
def extension = project.extensions.create('release', ReleasePluginExtension, project)
addPrepareTask(project, extension)
addReleaseTask(project, extension)
project.plugins.withId('org.ajoberstar.grgit') {
extension.grgit = project.grgit
}
}

private void addPrepareTask(Project project, ReleasePluginExtension extension) {
Expand Down

0 comments on commit d24e043

Please # to comment.