HomeDocs
DocsCommunityTestimonialsUsersGitHubTwitterBlogJobsTermsPrivacyCookies
TermsPrivacyCookies
Hey! These docs are for version 2.14, which is no longer officially supported. Click here for the latest version, 2.17!


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

Backend: <span style="color: purple"><code>pants.backend.experimental.kotlin</code></span> Config section: <span style="color: purple"><code>[kotlin]</code></span>

## Basic options

<div style="color: purple">

### `version_for_resolve`

<code>--kotlin-version-for-resolve="{'key1': val1, 'key2': val2, ...}"</code><br> <code>PANTS_KOTLIN_VERSION_FOR_RESOLVE</code><br>

</div> <div style="padding-left: 2em;"> <span style="color: green">default: <code>{}</code></span>

<br>

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

</div> <br>

## Advanced options

<div style="color: purple">

### `tailor_source_targets`

<code>--[no-]kotlin-tailor-source-targets</code><br> <code>PANTS_KOTLIN_TAILOR_SOURCE_TARGETS</code><br>

</div> <div style="padding-left: 2em;"> <span style="color: green">default: <code>True</code></span>

<br>

If true, add `kotlin_sources` targets with the `tailor` goal.

</div> <br>

## Deprecated options

None