@@ -31,8 +31,11 @@ new features before they are released. See [Early Access Preview](eap.md) for de
31
31
32
32
## Update to a new Kotlin version
33
33
34
- To upgrade your project to a new release, you need to update your build script file.
35
- For example, to update to Kotlin %kotlinVersion%, change the version of the Kotlin Gradle plugin in your
34
+ To upgrade your project to a new release, update the Kotlin version in your build system.
35
+
36
+ ### Gradle
37
+
38
+ To update to Kotlin %kotlinVersion%, change the version of the Kotlin Gradle plugin in your
36
39
` build.gradle(.kts) ` file:
37
40
38
41
<tabs group =" build-script " >
@@ -66,10 +69,43 @@ plugins {
66
69
</tab >
67
70
</tabs >
68
71
69
- If you have projects created with earlier Kotlin versions, change the Kotlin version in your projects and update kotlinx
70
- libraries if necessary.
72
+ If you have projects created with earlier Kotlin versions, check if you also need to [ update the version of any kotlinx
73
+ libraries] ( gradle-configure-project.md#set-a-dependency-on-a-kotlinx-library ) .
74
+
75
+ If you are migrating to a new language release, the Kotlin plugin's migration tools will help you with the process.
76
+
77
+ > To learn more about how to work with Gradle in your project, see [ Configure a Gradle project] ( gradle-configure-project.md ) .
78
+ >
79
+ {style="tip"}
80
+
81
+ ### Maven
82
+
83
+ To update to Kotlin %kotlinVersion%, change the version in your ` pom.xml ` file:
71
84
72
- If you are migrating to the new language release, Kotlin plugin's migration tools will help you with the migration.
85
+ ``` xml
86
+ <properties >
87
+ <kotlin .version>%kotlinVersion%</kotlin .version>
88
+ </properties >
89
+ ```
90
+
91
+ Alternatively, you can change the version of the ` kotlin-maven-plugin ` in your ` pom.xml ` file:
92
+
93
+ ``` xml
94
+ <plugins >
95
+ <plugin >
96
+ <groupId >org.jetbrains.kotlin</groupId >
97
+ <artifactId >kotlin-maven-plugin</artifactId >
98
+ <version >%kotlinVersion%</version >
99
+ </plugin >
100
+ </plugins >
101
+ ```
102
+
103
+ If you have projects created with earlier Kotlin versions, check if you also need to [ update the version of any kotlinx
104
+ libraries] ( maven.md#set-dependencies ) .
105
+
106
+ > To learn more about how to work with Maven in your project, see [ Maven] ( maven.md ) .
107
+ >
108
+ {style="tip"}
73
109
74
110
## IDE support
75
111
0 commit comments