Skip to main content
Version: 2.17 (deprecated)

kotlinc


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

Backend: pants.backend.experimental.kotlin

Config section: [kotlinc]

Basic options

args

--kotlinc-args="[<shell_str>, <shell_str>, ...]"
PANTS_KOTLINC_ARGS
pants.toml
[kotlinc]
args = [
<shell_str>,
<shell_str>,
...,
]
default: []

Arguments to pass directly to kotlinc, e.g. --kotlinc-args='-Werror'.

See https://kotlinlang.org/docs/compiler-reference.html for supported arguments.

plugins_for_resolve

--kotlinc-plugins-for-resolve="{'key1': val1, 'key2': val2, ...}"
PANTS_KOTLINC_PLUGINS_FOR_RESOLVE
pants.toml
[kotlinc.plugins_for_resolve]
key1 = val1
key2 = val2
...
default: {}

A dictionary, whose keys are the names of each JVM resolve that requires default kotlinc plugins, and the value is a comma-separated string consisting of kotlinc plugin names. Each specified plugin must have a corresponding kotlinc_plugin target that specifies that name in either its plugin_name field or is the same as its target name.

Advanced options

None

Deprecated options

None

None