Fix the filesets to be checked by checkstyle.
diff --git a/build.gradle b/build.gradle
index 1174e30..341b664 100644
--- a/build.gradle
+++ b/build.gradle
@@ -127,13 +127,11 @@
     }
 
     checkstyleMain {
-        source = fileTree(dir: "src", include: "**/*.java",
-            excludes: ["${buildDir}/generated-sources", "**/TestServiceGrpc.java"])
+        source = fileTree(dir: "src/main", include: "**/*.java")
     }
 
     checkstyleTest {
-        source = fileTree(dir: "test", include: "**/*.java",
-            exclude: "${buildDir}/generated-sources")
+        source = fileTree(dir: "src/test", include: "**/*.java")
     }
 
     task javadocJar(type: Jar) {