Skip to main content
Version: 2.12 (deprecated)

scala-infer


Options controlling which dependencies will be inferred for Scala targets.

Backend: pants.backend.experimental.scala

Config section: [scala-infer]

Basic options

consumed_types

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

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

imports

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

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

Advanced options

None

Deprecated options

None

None