Skip to content

Commit 9bdafde

Browse files
committed
update: update JVM target bytecode version 22
1 parent 8ef1839 commit 9bdafde

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

docs/topics/gradle/gradle-compiler-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Here is a complete list of options for Gradle tasks:
171171
| Name | Description | Possible values | Default value |
172172
|---------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|-----------------------------|
173173
| `javaParameters` | Generate metadata for Java 1.8 reflection on method parameters | | false |
174-
| `jvmTarget` | Target version of the generated JVM bytecode | "1.8", "9", "10", ..., "20", "21". Also, see [Types for compiler options](#types-for-compiler-options) | "%defaultJvmTargetVersion%" |
174+
| `jvmTarget` | Target version of the generated JVM bytecode | "1.8", "9", "10", ..., "21", "22". Also, see [Types for compiler options](#types-for-compiler-options) | "%defaultJvmTargetVersion%" |
175175
| `noJdk` | Don't automatically include the Java runtime into the classpath | | false |
176176
| `jvmTargetValidationMode` | <list><li>Validation of the [JVM target compatibility](gradle-configure-project.md#check-for-jvm-target-compatibility-of-related-compile-tasks) between Kotlin and Java</li><li>A property for tasks of the `KotlinCompile` type.</li></list> | `WARNING`, `ERROR`, `INFO` | `ERROR` |
177177

docs/topics/maven.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -322,17 +322,17 @@ The following attributes are supported:
322322

323323
### Attributes specific to JVM
324324

325-
| Name | Property name | Description | Possible values | Default value |
326-
|-------------------|---------------------------------|------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|-----------------------------|
327-
| `nowarn` | | Generate no warnings | true, false | false |
325+
| Name | Property name | Description | Possible values | Default value |
326+
|-------------------|---------------------------------|------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------|-----------------------------|
327+
| `nowarn` | | Generate no warnings | true, false | false |
328328
| `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", "2.0" (EXPERIMENTAL), "2.1" (EXPERIMENTAL) | |
329329
| `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", "2.0" (EXPERIMENTAL), "2.1" (EXPERIMENTAL) | |
330-
| `sourceDirs` | | The directories containing the source files to compile | | The project source roots |
331-
| `compilerPlugins` | | Enabled compiler plugins | | [] |
332-
| `pluginOptions` | | Options for compiler plugins | | [] |
333-
| `args` | | Additional compiler arguments | | [] |
334-
| `jvmTarget` | `kotlin.compiler.jvmTarget` | Target version of the generated JVM bytecode | "1.8", "9", "10", ..., "21" | "%defaultJvmTargetVersion%" |
335-
| `jdkHome` | `kotlin.compiler.jdkHome` | Include a custom JDK from the specified location into the classpath instead of the default JAVA_HOME | | |
330+
| `sourceDirs` | | The directories containing the source files to compile | | The project source roots |
331+
| `compilerPlugins` | | Enabled compiler plugins | | [] |
332+
| `pluginOptions` | | Options for compiler plugins | | [] |
333+
| `args` | | Additional compiler arguments | | [] |
334+
| `jvmTarget` | `kotlin.compiler.jvmTarget` | Target version of the generated JVM bytecode | "1.8", "9", "10", ..., "22" | "%defaultJvmTargetVersion%" |
335+
| `jdkHome` | `kotlin.compiler.jdkHome` | Include a custom JDK from the specified location into the classpath instead of the default JAVA_HOME | | |
336336

337337
## Use BOM
338338

docs/topics/whatsnew20.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,8 @@ We would appreciate any feedback you may have!
656656

657657
## Kotlin/JVM
658658

659-
This version brings the following changes:
659+
Starting with version 2.0.0, the compiler can generate classes containing Java 22 bytecode.
660+
This version also brings the following changes:
660661

661662
* [Generation of lambda functions using invokedynamic](#generation-of-lambda-functions-using-invokedynamic)
662663
* [The kotlinx-metadata-jvm library is now Stable](#the-kotlinx-metadata-jvm-library-is-stable)

0 commit comments

Comments
 (0)