Skip to main content
Version: 2.15 (deprecated)

kotlin-infer


Options controlling which dependencies will be inferred for Kotlin targets.

Backend: pants.backend.experimental.kotlin

Config section: [kotlin-infer]

Basic options

consumed_types

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

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

imports

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

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

Advanced options

None

Deprecated options

None

None