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

create_provider is deprecated #513

Closed
iphydf opened this issue Jun 7, 2018 · 3 comments
Closed

create_provider is deprecated #513

iphydf opened this issue Jun 7, 2018 · 3 comments

Comments

@iphydf
Copy link

iphydf commented Jun 7, 2018

external/io_bazel_rules_scala/scala/private/common.bzl", line 122, in create_java_provider
                java_common.create_provider(use_ijar = False, compile_time_jar..., <3 more arguments>)
create_provider is deprecated and cannot be used when --incompatible_disallow_legacy_javainfo is set. Please migrate to the JavaInfo constructor.

Tested with eeee467.

@ittaiz
Copy link
Member

ittaiz commented Jun 30, 2018

by the way, just to link here this thread points to a probable blocker in moving to the new API (since scala_library generates two JavaInfo providers) https://groups.google.com/forum/#!topic/bazel-sig-jvm/THl2DRqyYW0

@ittaiz
Copy link
Member

ittaiz commented Jul 12, 2019

#781 aims to fix this

@long-stripe
Copy link
Contributor

@ittaiz I believe this can be closed now.

> rg "create_provider"                                                                                                                                                                                                                                            (sc:no-domain)
test_expect_failure/scala_import/BUILD
8:    name = "dummy_dependency_to_trigger_create_provider_transitive_compile_jar_usage",
15:    deps = [":dummy_dependency_to_trigger_create_provider_transitive_compile_jar_usage"],

and #781 was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants