Generate Bazel dependency versions from pom.xml#4765
Conversation
|
@copilot Rather than hard code all the dependencies in the python script, which has the same syncrhonization problem, please extract them from the pom.xml file when the script runs. |
Addressed in 6e42086. The sync script now derives the generated Bazel dependency list directly from |
|
@copilot please resolve conflicts |
|
@copilot please make sure that the paths for all of the bazel builds now include the script and the pom.xml file. |
I checked this: |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brendandburns, Copilot The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
pom.xmlandMODULE.bazelhad already drifted on shared library versions, which made Maven and Bazel dependency management diverge over time. This change makes the root POM the single source of truth and turns the Bazel dependency block into generated output.Single source of truth
dependencyManagementto cover the Bazel-managed artifacts that were previously versioned only inMODULE.bazel.Generated Bazel dependency block
scripts/sync_bazel_dependencies.pyto read managed versions from the rootpom.xmland rewrite the generated dependency section inMODULE.bazel.CI enforcement
MODULE.bazelis stale relative topom.xml.Contributor workflow
CONTRIBUTING.md: change versions inpom.xml, regenerateMODULE.bazel, then repinmaven_install.json.Example of the generated pattern in
MODULE.bazel: