Skip to content

Commit bd11f61

Browse files
author
Mantas Sakalauskas
authored
feat(phase-compile): disable ijar for scala3 (#1332)
1 parent 72adeb5 commit bd11f61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scala/private/phases/phase_compile.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ load(
1717
_compile_scala = "compile_scala",
1818
)
1919
load(":resources.bzl", _resource_paths = "paths")
20+
load("@io_bazel_rules_scala_config//:config.bzl", "SCALA_VERSION")
21+
22+
buildijar_default_value = True if SCALA_VERSION.startswith("2.") else False
2023

2124
def phase_compile_binary(ctx, p):
2225
args = struct(
@@ -106,7 +109,7 @@ def _phase_compile_default(ctx, p, _args = struct()):
106109
ctx,
107110
p,
108111
_args.srcjars if hasattr(_args, "srcjars") else depset(),
109-
_args.buildijar if hasattr(_args, "buildijar") else True,
112+
_args.buildijar if hasattr(_args, "buildijar") else buildijar_default_value,
110113
_args.implicit_junit_deps_needed_for_java_compilation if hasattr(_args, "implicit_junit_deps_needed_for_java_compilation") else [],
111114
unused_dependency_checker_ignored_targets = _args.unused_dependency_checker_ignored_targets if hasattr(_args, "unused_dependency_checker_ignored_targets") else [],
112115
)

0 commit comments

Comments
 (0)