Ensure module-info.class is removed from deps in R8
Bug: 185317811
Change-Id: I9fbc14bd3892f6f8e9ed5045dc8466e17986015a
diff --git a/build.gradle b/build.gradle
index 12efa84..4feb96d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -733,7 +733,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'
}