Skip to content
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

update: remove JS in maven.md #3903

Merged
merged 3 commits into from
Nov 17, 2023
Merged
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
38 changes: 11 additions & 27 deletions docs/topics/maven.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,35 +289,19 @@ Many of the options can also be configured through properties:

The following attributes are supported:

### Attributes common to JVM and JS

| Name | Property name | Description | Possible values | Default value |
|------|---------------|-------------|-----------------|---------------|
| `nowarn` | | Generate no warnings | true, false | false |
| `languageVersion` | kotlin.compiler.languageVersion | Provide source compatibility with the specified version of Kotlin | "1.3" (DEPRECATED), "1.4" (DEPRECATED), "1.5", "1.6", "1.7", "1.8", "1.9" (EXPERIMENTAL) |
| `apiVersion` | kotlin.compiler.apiVersion | Allow using declarations only from the specified version of bundled libraries | "1.3" (DEPRECATED), "1.4" (DEPRECATED), "1.5", "1.6", "1.7", "1.8", "1.9" (EXPERIMENTAL) |
| `sourceDirs` | | The directories containing the source files to compile | | The project source roots
| `compilerPlugins` | | Enabled compiler plugins | | []
| `pluginOptions` | | Options for compiler plugins | | []
| `args` | | Additional compiler arguments | | []

### Attributes specific to JVM

| Name | Property name | Description | Possible values |Default value |
|------|---------------|-------------|--------------------------------|--------------|
| `jvmTarget` | `kotlin.compiler.jvmTarget` | Target version of the generated JVM bytecode | "1.8", "9", "10", ..., "21" | "%defaultJvmTargetVersion%" |
| `jdkHome` | `kotlin.compiler.jdkHome` | Include a custom JDK from the specified location into the classpath instead of the default JAVA_HOME | | |

### Attributes specific to JS

| Name | Property name | Description | Possible values |Default value |
|------|---------------|-------------|-----------------|--------------|
| `outputFile` | | Destination *.js file for the compilation result | | |
| `metaInfo` | | Generate .meta.js and .kjsm files with metadata. Use to create a library | true, false | true
| `sourceMap` | | Generate source map | true, false | false
| `sourceMapEmbedSources` | | Embed source files into source map | "never", "always", "inlining" | "inlining" |
| `sourceMapPrefix` | | Add the specified prefix to paths in the source map | | |
| `moduleKind` | | The kind of JS module generated by the compiler | "umd", "commonjs", "amd", "plain" | "umd"
| Name | Property name | Description | Possible values | Default value |
|-------------------|---------------------------------|------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|-----------------------------|
| `nowarn` | | Generate no warnings | true, false | false |
| `languageVersion` | kotlin.compiler.languageVersion | Provide source compatibility with the specified version of Kotlin | "1.3" (DEPRECATED), "1.4" (DEPRECATED), "1.5", "1.6", "1.7", "1.8", "1.9" (EXPERIMENTAL) | |
| `apiVersion` | kotlin.compiler.apiVersion | Allow using declarations only from the specified version of bundled libraries | "1.3" (DEPRECATED), "1.4" (DEPRECATED), "1.5", "1.6", "1.7", "1.8", "1.9" (EXPERIMENTAL) | |
| `sourceDirs` | | The directories containing the source files to compile | | The project source roots |
| `compilerPlugins` | | Enabled compiler plugins | | [] |
| `pluginOptions` | | Options for compiler plugins | | [] |
| `args` | | Additional compiler arguments | | [] |
| `jvmTarget` | `kotlin.compiler.jvmTarget` | Target version of the generated JVM bytecode | "1.8", "9", "10", ..., "21" | "%defaultJvmTargetVersion%" |
| `jdkHome` | `kotlin.compiler.jdkHome` | Include a custom JDK from the specified location into the classpath instead of the default JAVA_HOME | | |

## Use BOM

Expand Down