-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Closed
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)incompatible-changeIncompatible/breaking changeIncompatible/breaking changeteam-Rules-JavaIssues for Java rulesIssues for Java rulestype: process
Description
Flag: --incompatible_disallow_resource_jars
Available since: 2018-11-12
Flipped in: Bazel 5.0.0
Will be removed: after 5.0.0
Migration
Disables the resource_jars attribute on java_library; use java_import and deps or runtime_deps instead.
For example:
java_import(
name = "resources",
jars = ["resource.jar"],
)
java_library(
name = "lib",
runtime_deps = [":resources"],
)Unflipping
Use:
--noincompatible_disallow_resource_jars --experimental_builtins_injection_override=-java_library,-java_plugin
The flag is correlated with Starlark java_library. In order to flip it back, also implementation of java_library and java_plugin need to be flipped back to native implementation.
FaceMob1
Metadata
Metadata
Assignees
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)incompatible-changeIncompatible/breaking changeIncompatible/breaking changeteam-Rules-JavaIssues for Java rulesIssues for Java rulestype: process