Skip to content

Add bzlmod support (MODULE.bazel)#1329

Closed
Konboi wants to merge 2 commits into
v1from
bzlmode-support-v1
Closed

Add bzlmod support (MODULE.bazel)#1329
Konboi wants to merge 2 commits into
v1from
bzlmode-support-v1

Conversation

@Konboi

@Konboi Konboi commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add MODULE.bazel to support Bzlmod (Bazel's new dependency management system), replacing the legacy WORKSPACE-based setup
  • Add WORKSPACE.bzlmod (empty) to suppress WORKSPACE processing when bzlmod is active
  • Add BUILD at repo root (required for //:maven_install.json package reference)
  • Regenerate maven_install.json at root with bzlmod-compatible v2 format
  • Enable bzlmod via common --enable_bzlmod in .bazelrc
  • Use rules_jvm_external 6.7 (6.6's BCR entry uses an old bazelbuild URL that returns 504; 6.7 correctly uses bazel-contrib)

The WORKSPACE file is retained as-is for backward compatibility.

Test plan

  • REPIN=1 bazel run @unpinned_maven//:pin — completed successfully, maven_install.json regenerated
  • bazel build //src/main/java/com/launchableinc/ingest/commits/... — passes
  • bazel test //src/test/java/com/launchableinc/ingest/commits:AllTests — 1 test passes

🤖 Generated with Claude Code

Migrate from WORKSPACE to bzlmod (Bazel module system):

- Add MODULE.bazel with rules_jvm_external 6.7 via Bazel Central Registry
- Add WORKSPACE.bzlmod (empty) to suppress WORKSPACE processing
- Remove legacy WORKSPACE file
- Enable bzlmod via `common --enable_bzlmod` in .bazelrc
- Regenerate src/maven_install.json in bzlmod v2 lock file format
- Fix java8-compat.sh external path for bzlmod runfiles layout
- Update CI workflows: trigger on MODULE.bazel, bump checkout to v6.0.3

To update dependencies:
  REPIN=1 bazel run @unpinned_maven//:pin

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Konboi Konboi force-pushed the bzlmode-support-v1 branch from d461d5f to 130ef08 Compare June 23, 2026 00:15
- Restore files that were accidentally modified (CBP URL, subset-id-file)
- Replace expired LAUNCHABLEINC_CI_GITHUB_TOKEN with GITHUB_TOKEN
  using verified-bot-commit action

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Konboi Konboi closed this Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant