Description of the feature request:
Introduce an option to fail the build if javac fails to compile with the reduced classpath while using --experimental_java_classpath=bazel.
Which category does this issue belong to?
Java Rules
What underlying problem are you trying to solve with this feature?
In our large Java monolith, certain modules often fail to compile with the reduced classpath, triggering an additional build action with the full transitive classpath. We want to fix these fallbacks but need a way to identify the reasons for their occurrence. By failing the build, this feature would:
- Expose javac errors and identify missing dependencies.
- Prevent new fallbacks from being introduced.
Which operating system are you running Bazel on?
MacOS and Linux
What is the output of bazel info release?
7.4.1
If bazel info release returns development version or (@non-git), tell us how you built Bazel.
No response
What's the output of git remote get-url origin; git rev-parse HEAD ?
No response
Have you found anything relevant by searching the web?
No
Any other information, logs, or outputs that you want to share?
No response
Description of the feature request:
Introduce an option to fail the build if javac fails to compile with the reduced classpath while using
--experimental_java_classpath=bazel.Which category does this issue belong to?
Java Rules
What underlying problem are you trying to solve with this feature?
In our large Java monolith, certain modules often fail to compile with the reduced classpath, triggering an additional build action with the full transitive classpath. We want to fix these fallbacks but need a way to identify the reasons for their occurrence. By failing the build, this feature would:
Which operating system are you running Bazel on?
MacOS and Linux
What is the output of
bazel info release?7.4.1
If
bazel info releasereturnsdevelopment versionor(@non-git), tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD?No response
Have you found anything relevant by searching the web?
No
Any other information, logs, or outputs that you want to share?
No response