Skip to content

Change languageSettings{} advice #441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions topics/tools/multiplatform-dsl-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ Learn more about [compilation for Android](multiplatform-configure-compilations.
## Source sets

The `sourceSets {}` block describes source sets of the project. A source set contains Kotlin source files that participate
in compilations together, along with their resources, dependencies, and language settings.
in compilations together, along with their resources and dependencies.

A multiplatform project contains [predefined](#predefined-source-sets) source sets for its targets;
developers can also create [custom](#custom-source-sets) source sets for their needs.
Expand Down Expand Up @@ -534,7 +534,7 @@ Configurations of source sets are stored inside the corresponding blocks of `sou
| `resources.srcDir` | Location of resources inside the source set directory. |
| `dependsOn` | [Connection with another source set](multiplatform-hierarchy.md#manual-configuration). |
| `dependencies` | [Dependencies](#dependencies) of the source set. |
| `languageSettings` | [Language settings](#language-settings) applied to the source set. |
| `languageSettings` | [Language settings](#language-settings) applied to the shared source set. |

<tabs group="build-script">
<tab title="Kotlin" group-key="kotlin">
Expand Down Expand Up @@ -1017,7 +1017,11 @@ dependencies {

## Language settings

The `languageSettings {}` block of a source set defines certain aspects of project analysis and build. The following language settings are available:
The `languageSettings {}` block in a source set defines certain aspects of project analysis and compilation. Use the
`languageSettings {}` block only to configure settings that apply specifically to a shared source set. For all other cases,
use the `compilerOptions{}` block to [configure compiler options](#compiler-options) at the extension or target level.

The following language settings are available:

| **Name** | **Description** |
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
Expand Down