You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -6,8 +6,7 @@ You only need to configure your build manually for existing projects — project
6
6
7
7
To configure your build to use the EAP version of Kotlin, you need to:
8
8
9
-
* Specify the EAP version of Kotlin. Available EAP versions are listed [here](eap.md#build-details).
10
-
* Add the EAP repository to the build – <https://dl.bintray.com/kotlin/kotlin-eap>.
9
+
* Specify the EAP version of Kotlin. Available EAP versions are listed [here](eap.md#build-details).
11
10
* Change the versions of dependencies to EAP ones.
12
11
The EAP version of Kotlin may not work with the libraries of the previously released version.
13
12
@@ -20,114 +19,44 @@ The following procedures describe how to configure your build in Gradle and Mave
20
19
21
20
This section describes how you can:
22
21
23
-
*[Adjust the Kotlin version and add the EAP repository](#adjust-the-kotlin-version-and-add-the-eap-repository)
22
+
*[Adjust the Kotlin version](#adjust-the-kotlin-version)
24
23
*[Adjust versions in dependencies](#adjust-versions-in-dependencies)
25
24
26
-
### Adjust the Kotlin version and add the EAP repository
25
+
### Adjust the Kotlin version
27
26
28
-
Depending on your configuration approach, you need to perform different steps in your build files.
29
-
This section describes common options, but if you use a different approach, you can refer to [Gradle documentation](https://docs.gradle.org/) for assistance.
30
-
31
-
This section covers:
32
-
33
-
*[Option 1. Configure in the build and settings files](#option-1-configure-in-the-build-and-settings-files)
34
-
*[Option 2. Configure in the build file only](#option-2-configure-in-the-build-file-only)
35
-
36
-
#### Option 1. Configure in the build and settings files
27
+
In the `plugins` block within `build.gradle(.kts)`, change the `KOTLIN-EAP-VERSION` to the actual EAP version,
28
+
such as `%kotlinEapVersion%`. Available EAP versions are listed [here](eap.md#build-details).
37
29
38
-
1. In the `plugins` block within `build.gradle` (`build.gradle.kts`), change the `KOTLIN-EAP-VERSION` to the actual EAP version, such as `%kotlinEapVersion%`. Available EAP versions are listed [here](eap.md#build-details).
39
-
40
-
Alternatively, you can specify the EAP version in the `pluginManagement` block in `settings.gradle` (`settings.gradle.kts`) – see [Gradle documentation](https://docs.gradle.org/current/userguide/plugins.html#sec:plugin_version_management) for details.
41
-
2. In the `repositories` block, specify the EAP repository – <https://dl.bintray.com/kotlin/kotlin-eap> – for dependencies.
30
+
Alternatively, you can specify the EAP version in the `pluginManagement` block in `settings.gradle(.kts)` – see [Gradle documentation](https://docs.gradle.org/current/userguide/plugins.html#sec:plugin_version_management) for details.
42
31
43
32
Here is an example for the Multiplatform project.
44
33
45
34
<tabs>
46
35
47
36
```groovy
48
37
plugins {
49
-
id 'java'
50
-
id 'org.jetbrains.kotlin.multiplatform' version 'KOTLIN-EAP-VERSION'
38
+
id 'java'
39
+
id 'org.jetbrains.kotlin.multiplatform' version 'KOTLIN-EAP-VERSION'
* In the `pluginManagement` block within `settings.gradle` (`settings.gradle.kts`), specify the EAP repository – <https://dl.bintray.com/kotlin/kotlin-eap>.
0 commit comments