diff --git a/build.gradle b/build.gradle
index 19e59ed6facecf7e50724c0dbe11d15dfc5a32cc..311eb63e44dce3ffba3858bb400991568a9e10ea 100644
--- a/build.gradle
+++ b/build.gradle
@@ -70,4 +70,5 @@ task deploy(type: Exec) {
         commandLine "bash", "/Users/spotlight/bin/deploy-dev", libsDir.getCanonicalPath() + "/Cedar-1.0.jar"
 }
 
-deploy.mustRunAfter build
\ No newline at end of file
+deploy.mustRunAfter build
+build.finalizedBy deploy
\ No newline at end of file