Skip to content

Commit b6d9943

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 6565540 commit b6d9943

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

scala/private/rule_impls.bzl

+1-4
Original file line numberDiff line numberDiff line change
@@ -157,10 +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-
extra_javac_opts +
161-
java_common.default_javac_opts(
162-
java_toolchain = java_toolchain,
163-
),
160+
extra_javac_opts
164161
),
165162
deps = providers_of_dependencies,
166163
#exports can be empty since the manually created provider exposes exports

0 commit comments

Comments
 (0)