Skip to main content
Version: 2.8 (deprecated)

java-infer


Options controlling which dependencies will be inferred for Java targets.

Backend: ``

Config section: [java-infer]

Basic options

consumed_types

--[no-]java-infer-consumed-types
PANTS_JAVA_INFER_CONSUMED_TYPES
pants.toml
[java-infer]
consumed_types = <bool>
default: True

Infer a target's dependencies by parsing consumed types from sources.

imports

--[no-]java-infer-imports
PANTS_JAVA_INFER_IMPORTS
pants.toml
[java-infer]
imports = <bool>
default: True

Infer a target's dependencies by parsing import statements from sources.

Advanced options

None

Deprecated options

None

None