Repository navigation
[java] put third-party jars under lib/ in dist zips again by matching prefixes on canonical labels - #18165
Conversation
… prefixes on canonical labels
PR Summary by QodoRestore third-party jars to lib/ in Java distribution zips
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1.
|
🔗 Related Issues
Regressed from #13726 (released with Selenium 4.20)
💥 What does this PR do?
Restores the pre-4.20 layout of the
selenium-javaandselenium-serverzips: Selenium jars and their sources at the root, third-party jars underlib/without their sources.🔧 Implementation Notes
third_party_prefixeswere matched againststr(label), which under Bzlmod is@@rules_jvm_external++maven+maven//...for Maven deps and@@//...for this repo, so neither@maven//nor//third_partyever matched.Label()and compared on repo name and package, so apparent names like@mavenmap to their canonical repos.lib/rather than making the flat layout official; a-cp "dir/*"classpath now misses the third-party jars, while-cp "dir/*:dir/lib/*"works with either layout.-sources.jarfiles shrinks theselenium-javazip from 38 to 34 MB and theselenium-serverzip from 135 to 110 MB.🤖 AI assistance
🔄 Types of changes