Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove jvm_flags debug print for scala_library #840

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions scala/private/rules/scala_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ def _lib(
##

def _scala_library_impl(ctx):
if ctx.attr.jvm_flags:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we not need to change the rule to make using them an error?

print("'jvm_flags' for scala_library is deprecated. It does nothing today and will be removed from scala_library to avoid confusion.")
scalac_provider = get_scalac_provider(ctx)
unused_dependency_checker_mode = get_unused_dependency_checker_mode(ctx)
return _lib(
Expand Down
8 changes: 0 additions & 8 deletions test/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,6 @@ scala_library(
srcs = glob(["src/main/scala/scalarules/test/mix_java_scala/*.scala"]) + glob([
"src/main/scala/scalarules/test/mix_java_scala/*.java",
]),
jvm_flags = [
"-Xms1G",
"-Xmx4G",
],
)

genrule(
Expand Down Expand Up @@ -323,10 +319,6 @@ scala_library(
# srcjar created with `jar -cfM Baz.srcjar Baz.java`
"src/main/scala/scalarules/test/mix_java_scala/*.srcjar",
]),
jvm_flags = [
"-Xms1G",
"-Xmx4G",
],
)

#needed to test java sources are compiled
Expand Down