Skip to content

feat: Add macros to customize JavaBuilder and Error Prone checkers#364

Open
JonathanPerry651 wants to merge 4 commits into
bazelbuild:masterfrom
JonathanPerry651:custom-javabuilder-support
Open

feat: Add macros to customize JavaBuilder and Error Prone checkers#364
JonathanPerry651 wants to merge 4 commits into
bazelbuild:masterfrom
JonathanPerry651:custom-javabuilder-support

Conversation

@JonathanPerry651

Copy link
Copy Markdown

Description

Exposes two new Starlark macros to support pluggable Error Prone configuration and custom Javac checker injection:

  1. errorprone_with_custom_plugins: Merges a base Error Prone compiler core library with extra custom plugin/checker libraries.
  2. default_javabuilder: Assembles a custom JavaBuilder deploy jar by combining the core javabuilder_without_errorprone binary with the customized Error Prone target.

Motivation

Part of the JavaBuilder pluggability refactoring to allow users to build and run custom Error Prone plugins in their java toolchains.

This PR provides the Starlark macro implementation and defaults for Bazel Issue #29910.

Build API Changes

Yes

  1. Has this been discussed in a design doc or issue? Yes, discussed in Bazel Issue #29910.
  2. Is the change backward compatible? Yes.
  3. If it's a breaking change, what is the migration plan? N/A.

Checklist

  • I have added tests for the new use cases (if any).
  • I have updated the documentation (if applicable).

Release Notes

RELNOTES: None

@JonathanPerry651 JonathanPerry651 requested review from a team and hvadehra as code owners July 6, 2026 08:57
@google-cla

google-cla Bot commented Jul 6, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@JonathanPerry651 JonathanPerry651 force-pushed the custom-javabuilder-support branch from c6b8b11 to 8a2aadd Compare July 7, 2026 09:35
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