gn2bp: be explicit about dropping java_group dependencies
This is a no-op that makes the code more readable.
Test: //net:net
Change-Id: I8c026cd2f7cd3d676223d4c05a49376140791e21
diff --git a/tools/gn2bp/gn_utils.py b/tools/gn2bp/gn_utils.py
index d706bd8..5a84622 100644
--- a/tools/gn2bp/gn_utils.py
+++ b/tools/gn2bp/gn_utils.py
@@ -291,6 +291,11 @@
target.deps.add(dep_name)
elif dep.type in LINKER_UNIT_TYPES:
target.deps.add(dep_name)
+ elif dep.type == 'java_group':
+ # Explicitly break dependency chain when a java_group is added.
+ # Java sources are collected and eventually compiled as one large
+ # java_library.
+ pass
return target