From 38a08e9c049eef61ef65ef5ae7d98fab24743d03 Mon Sep 17 00:00:00 2001 From: Ittai Zeidman Date: Sun, 21 Jul 2019 10:25:13 +0300 Subject: [PATCH] warn if jvm_flags is used in scala_library --- scala/private/rule_impls.bzl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scala/private/rule_impls.bzl b/scala/private/rule_impls.bzl index 3b9a52626..f504c781d 100644 --- a/scala/private/rule_impls.bzl +++ b/scala/private/rule_impls.bzl @@ -867,6 +867,8 @@ def get_unused_dependency_checker_mode(ctx): return ctx.toolchains["@io_bazel_rules_scala//scala:toolchain_type"].unused_dependency_checker_mode def scala_library_impl(ctx): + if ctx.attr.jvm_flags: + print("'jvm_flags' for scala_library is deprecated. It does nothing today and will be removed from scala_library to avoid confusion.") scalac_provider = _scalac_provider(ctx) unused_dependency_checker_mode = get_unused_dependency_checker_mode(ctx) return _lib(