Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register JavaCompileActionContext in Bazel. #16921

Closed

Conversation

benjaminp
Copy link
Collaborator

@benjaminp benjaminp commented Dec 5, 2022

This makes --experimental_java_classpath=bazel work.

This CL is similar to #16636 but applies the code review feedback. (Though, I put the context registration in BazelRulesModule rather than BazelStrategyModule as JavaCompileActionContext isn't really a strategy.)

Fixes #16635.

@ShreeM01 ShreeM01 added team-Rules-Java Issues for Java rules awaiting-review PR is awaiting review from an assigned reviewer labels Dec 5, 2022
This makes --experimental_java_classpath=bazel work.

This CL is similar to bazelbuild#16636 but applies the code review feedback. (Though, I put the context registration in BazelRulesModule rather than BazelStrategyModule as JavaCompileActionContext isn't really a strategy.)

Fixes bazelbuild#16635.
@cushon
Copy link
Contributor

cushon commented Dec 12, 2022

LGTM, thanks

@comius any concerns, since you left comments on the other PR?

@cushon cushon added the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Dec 12, 2022
@sgowroji sgowroji removed the awaiting-review PR is awaiting review from an assigned reviewer label Dec 13, 2022
@comius
Copy link
Contributor

comius commented Dec 13, 2022

No, concerns. Thanks!

@sgowroji sgowroji removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Dec 13, 2022
@benjaminp benjaminp deleted the benjamin-reduced-class-path branch December 13, 2022 09:32
@fmeum
Copy link
Collaborator

fmeum commented Jan 6, 2023

@bazel-io flag

@bazel-io bazel-io added the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Jan 6, 2023
@ShreeM01
Copy link
Contributor

@bazel-io fork 6.1.0

@bazel-io bazel-io removed the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Jan 18, 2023
ShreeM01 added a commit that referenced this pull request Jan 25, 2023
This makes --experimental_java_classpath=bazel work.

This CL is similar to #16636 but applies the code review feedback. (Though, I put the context registration in BazelRulesModule rather than BazelStrategyModule as JavaCompileActionContext isn't really a strategy.)

Fixes #16635.

Closes #16921.

PiperOrigin-RevId: 494950719
Change-Id: Ia32e2d0e67ddacaf18ba52591f7b67b3c6c7b792

Co-authored-by: Benjamin Peterson <benjamin@engflow.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Rules-Java Issues for Java rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bazel NPE when setting --java_classpath=bazel
7 participants