diff --git a/src/main/groovy/org/ajoberstar/gradle/git/publish/GitPublishPlugin.groovy b/src/main/groovy/org/ajoberstar/gradle/git/publish/GitPublishPlugin.groovy
index a5d02a8..38051c0 100644
--- a/src/main/groovy/org/ajoberstar/gradle/git/publish/GitPublishPlugin.groovy
+++ b/src/main/groovy/org/ajoberstar/gradle/git/publish/GitPublishPlugin.groovy
@@ -71,6 +71,9 @@ class GitPublishPlugin implements Plugin<Project> {
     task.with {
       group = 'publishing'
       description = 'Prepares a git repo for new content to be generated.'
+
+      outputs.dir(extension.repoDir)
+
       // get the repo in place
       doFirst {
         Grgit repo = findExistingRepo(project, extension).orElseGet { freshRepo(extension) }