diff --git a/icebergShaded/generate_iceberg_jars.py b/icebergShaded/generate_iceberg_jars.py index 551638aca90..91cf1cacf8a 100644 --- a/icebergShaded/generate_iceberg_jars.py +++ b/icebergShaded/generate_iceberg_jars.py @@ -124,7 +124,7 @@ def generate_iceberg_jars(): # Search for all glob results results = glob.glob(compiled_jar_abs_pattern) # Compiled jars will include tests, sources, javadocs; exclude them - results = list(filter(lambda result: all(x not in result for x in ["test", "source", "javadoc"]), results)) + results = list(filter(lambda result: all(x not in result for x in ["tests.jar", "sources.jar", "javadoc.jar"]), results)) if len(results) == 0: raise Exception("Could not find the jar: " + compled_jar_rel_glob_pattern)