Skip to content

Commit 9d4b36e

Browse files
Add common_javacopts to make_scala_rules call site (#1867)
1 parent 6254e88 commit 9d4b36e

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎MODULE.bazel‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ bazel_dep(name = "rules_jvm_external", version = "7.0")
66
bazel_dep(name = "aspect_rules_lint", version = "2.5.2")
77
bazel_dep(name = "buildifier_prebuilt", version = "8.5.1.2")
88

9-
BAZEL_TOOLING_VERSION = "4bcf42cc81b574b91699d696b504637677640871"
9+
BAZEL_TOOLING_VERSION = "fbdfc66995360c408ecf94d34837a0355aa7ac4d"
1010

1111
git_override(
1212
module_name = "bazel_tooling",

‎bazel/scala.bzl‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ _rules = make_scala_rules(
1111
"-deprecation",
1212
"-Wconf:msg=Implicit parameters should be provided with a `using` clause:s",
1313
],
14+
# Applies to the Java sources of mixed Java/Scala targets which rules_scala
15+
# compiles in a separate Javac action that does not see the javacopts from
16+
# bazel/java.bzl. Keep in sync with java_common_opts there.
17+
common_javacopts = [
18+
"--release",
19+
"17",
20+
"-XepDisableAllChecks",
21+
],
1422
common_scala_binary_runtime_deps = [],
1523
common_scala_test_runtime_deps = [],
1624
)

0 commit comments

Comments
 (0)