-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java] Replace Maven dependency references with artifact() for org.jspecify.jspecify #16635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
[java] Replace Maven dependency references with artifact() for org.jspecify.jspecify #16635
Conversation
…jspecify in multiple BUILD.bazel files Update BUILD.bazel to load artifact() alongside java_export Update BUILD.bazel to load artifact() for java_library and java_export
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
🔗 Related Issues
related to #16026
💥 What does this PR do?
This pull request updates the way the
jspecifydependency is referenced in several Bazel build files across the Selenium Java modules. Instead of using the@maven//:org_jspecify_jspecifylabel, the dependency is now added via theartifact("org.jspecify:jspecify")function fromrules_jvm_external. This change standardizes dependency management and improves compatibility with Bazel's external artifact handling.Dependency management improvements:
@maven//:org_jspecify_jspecifyto useartifact("org.jspecify:jspecify")in thedepslists of multiple build files, includingchrome,edge,firefox,ie,safari,json,remote/http,concurrent,devtools, andgrid/sessionmap/jdbcmodules. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]Build file loading updates:
artifactsymbol to Bazelloadstatements in affected build files to enable the new dependency syntax. [1] [2] [3] [4] [5] [6] [7] [8]These changes make the build configuration more maintainable and consistent with Bazel best practices.
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Consolidate
artifact()function imports fromrules_jvm_externalinto//java:defs.bzlReplace all
@maven//:org_jspecify_jspecifyreferences withartifact("org.jspecify:jspecify")Standardize dependency management across 11 Java module BUILD files
Remove redundant external
artifactimports from individual build filesDiagram Walkthrough
flowchart LR A["@rules_jvm_external//:defs.bzl<br/>artifact import"] -->|"consolidate into"| B["//java:defs.bzl"] C["@maven//:org_jspecify_jspecify<br/>direct reference"] -->|"replace with"| D["artifact('org.jspecify:jspecify')"] B -->|"load in BUILD files"| D style A fill:#ffcccc style C fill:#ffcccc style B fill:#ccffcc style D fill:#ccffccFile Walkthrough
12 files
Load artifact function and update jspecify dependencyLoad artifact function and update jspecify dependencyConsolidate artifact import and update jspecify referencesLoad artifact function and update jspecify dependencyLoad artifact function and update jspecify dependencyConsolidate artifact import and update jspecify referenceLoad artifact function and update jspecify dependencyLoad artifact function and add jspecify dependencyConsolidate artifact import and update load statementLoad artifact function and update jspecify dependencyLoad artifact function and update jspecify dependencyConsolidate artifact import into defs.bzl load