Commit 8fa02d9
committed
Migrate to bzlmod for dependency management
Replace WORKSPACE-based dependency management with bzlmod (MODULE.bazel),
following Bazel's modern dependency management approach. This migration
aligns with Bazel 8+ best practices and prepares for the eventual
deprecation of WORKSPACE in Bazel 9.
Changes:
- Create MODULE.bazel with all external dependencies
- Migrate rules_license, bazel_skylib, rules_java, bazel_features
- Migrate rules_jvm_external and Maven dependencies to bzlmod extensions
- Update .bazelrc to enable bzlmod explicitly
- Reduce WORKSPACE.bazel to minimal stub with reference to MODULE.bazel
- Add MODULE.bazel.lock for reproducible builds
- Suppress maven repository multi-module contribution warning
All dependencies maintained at same versions:
- rules_license 1.0.0
- bazel_skylib 1.8.2
- rules_java 8.16.1
- bazel_features 1.38.0
- rules_jvm_external 6.9
- Maven: guava 33.3.1-jre, jsr305 3.0.2
---
Prompt:
```
Good work creating this demo package. But since we're starting fresh, I'd like it to be using latest Bazel style: https://bazel.build/external/migration. Implement the migration to bzlmod
```1 parent 6c1d461 commit 8fa02d9
4 files changed
Lines changed: 324 additions & 96 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments