Ensure module-info.class is removed from deps in R8

Bug: 185317811
Change-Id: I9fbc14bd3892f6f8e9ed5045dc8466e17986015a
diff --git a/build.gradle b/build.gradle
index 685122f..9e1bf0f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -707,7 +707,7 @@
 task repackageDepsNew(type: ShadowJar) {
     configurations = [project.configurations.runtimeClasspath]
     mergeServiceFiles(it)
-    exclude { it.getRelativePath().getPathString() == "module-info.class" }
+    exclude { it.getRelativePath().getPathString().endsWith("module-info.class") }
     exclude { it.getRelativePath().getPathString().startsWith("META-INF/maven/") }
     baseName 'deps_all'
 }