Skip to content

incompatible_disallow_resource_jars #13221

@comius

Description

@comius

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.

Metadata

Metadata

Assignees

Labels

P2We'll consider working on this in future. (Assignee optional)incompatible-changeIncompatible/breaking changeteam-Rules-JavaIssues for Java rulestype: process

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions