Skip to main content
Version: 2.16 (deprecated)

kotlin


The Kotlin programming language (https://kotlinlang.org/).

Backend: pants.backend.experimental.kotlin

Config section: [kotlin]

Basic options

version_for_resolve

--kotlin-version-for-resolve="{'key1': val1, 'key2': val2, ...}"
PANTS_KOTLIN_VERSION_FOR_RESOLVE
pants.toml
[kotlin.version_for_resolve]
key1 = val1
key2 = val2
...
default: {}

A dictionary mapping the name of a resolve to the Kotlin version to use for all Kotlin targets consuming that resolve.

Advanced options

tailor_source_targets

--[no-]kotlin-tailor-source-targets
PANTS_KOTLIN_TAILOR_SOURCE_TARGETS
pants.toml
[kotlin]
tailor_source_targets = <bool>
default: True

If true, add kotlin_sources targets with the tailor goal.

Deprecated options

None

None