Skip to content

Conversation

@Bencodes
Copy link
Collaborator

No description provided.

@Bencodes
Copy link
Collaborator Author

This is a prototype. The worker API rules don't support the WORKSPACE path so we'd probably need to do some compat. work if we want to ship this.

@restingbull
Copy link
Collaborator

This is a prototype. The worker API rules don't support the WORKSPACE path so we'd probably need to do some compat. work if we want to ship this.

Direction looks good. Think we can strip more of the worker code out, though. Will take a stab at it.

@Bencodes Bencodes force-pushed the move-to-the-official-bazel-worker-api branch from d86da65 to b8a410a Compare May 29, 2025 23:21
agluszak added a commit to agluszak/rules_kotlin that referenced this pull request Nov 13, 2025
Implements workspace_compat.bzl to enable bazel-worker-api usage in
WORKSPACE mode, similar to rules_scala's approach but supporting both
proto and java components.

Changes:
- Created workspace_compat.bzl to download bazel_worker_api and
  bazel_worker_java from GitHub releases
- Updated setup.bzl to add required Maven dependencies (gson,
  error_prone_annotations) and upgrade guava to 33.0.0-jre
- Updated versions.bzl with BAZEL_WORKER_API version constant
- Modified initialize.bzl to call workspace_compat() in
  kotlin_repositories()
- Synchronized MODULE.bazel dependencies with WORKSPACE setup
- Repinned Maven dependencies

This allows PR bazelbuild#1218 to work with both bzlmod and WORKSPACE builds.
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.

3 participants