Fix change detection for compiler testing
diff --git a/compiler/build.gradle b/compiler/build.gradle
index 240e57d..2302e5c 100644
--- a/compiler/build.gradle
+++ b/compiler/build.gradle
@@ -152,7 +152,10 @@
     }
   }
   generateProtoTasks {
-    all()*.dependsOn 'java_pluginExecutable'
+    all().each { task ->
+      task.dependsOn 'java_pluginExecutable'
+      task.inputs.file javaPluginPath
+    }
     ofSourceSet('test')*.plugins {
       grpc {}
     }