Skip to content

Commit b3cf2c0

Browse files
committed
Do not include default javacopts
rules_java already includes the toolchain's default javacopts when compiling java_library. Please see: https://github.com/bazelbuild/rules_java/blob/f26a240c3392f0ae45a2ce3244c93713d7539611/java/common/rules/java_toolchain.bzl#L167 fixes bazel-contrib#1685
1 parent a8ae50e commit b3cf2c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scala/private/rule_impls.bzl

+1-3
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ def compile_java(ctx, source_jars, source_files, output, extra_javac_opts, provi
157157
output = output,
158158
javac_opts = expand_location(
159159
ctx,
160-
java_common.default_javac_opts(
161-
java_toolchain = java_toolchain,
162-
) + extra_javac_opts,
160+
extra_javac_opts
163161
),
164162
deps = providers_of_dependencies,
165163
#exports can be empty since the manually created provider exposes exports

0 commit comments

Comments
 (0)