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


Scala programming language

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

## Basic options

<div style="color: purple">

### `version_for_resolve`

<code>--scala-version-for-resolve="{'key1': val1, 'key2': val2, ...}"</code><br> <code>PANTS_SCALA_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 Scala version to use for all Scala targets consuming that resolve.

All Scala-compiled jars on a resolve's classpath must be "compatible" with one another and with all Scala-compiled first-party sources from `scala_sources` (and other Scala target types) using that resolve. The option sets the Scala version that will be used to compile all first-party sources using the resolve. This ensures that the compatibility property is maintained for a resolve. To support multiple Scala versions, use multiple resolves.

</div> <br>

## Advanced options

<div style="color: purple">

### `tailor_source_targets`

<code>--[no-]scala-tailor-source-targets</code><br> <code>PANTS_SCALA_TAILOR_SOURCE_TARGETS</code><br>

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

<br>

If true, add `scala_sources`, `scala_junit_tests`, and `scalatest_tests` targets with the `tailor` goal.

</div> <br>

## Deprecated options

None