Configure your build for EAP
To configure your build to use the EAP version of Kotlin, you need to:
Specify the EAP version of Kotlin. Available EAP versions are listed here.
Change the versions of dependencies to EAP ones. The EAP version of Kotlin may not work with the libraries of the previously released version.
The following procedures describe how to configure your build in Gradle and Maven:
Configure in Gradle
This section describes how you can:
Adjust the Kotlin version
In the plugins
block within build.gradle(.kts)
, change the KOTLIN-EAP-VERSION
to the actual EAP version, such as 2.1.20-Beta1
. Available EAP versions are listed here.
Alternatively, you can specify the EAP version in the pluginManagement
block in settings.gradle(.kts)
– see Gradle documentation for details.
Here is an example for the Multiplatform project.
Adjust versions in dependencies
If you use kotlinx libraries in your project, your versions of the libraries may not be compatible with the EAP version of Kotlin.
To resolve this issue, you need to specify the version of a compatible library in dependencies. For a list of compatible libraries, see EAP build details.
Here is an example.
For the kotlinx.coroutines library, add the version number – 1.9.0-RC.2
– that is compatible with 2.1.20-Beta1
.
Configure in Maven
In the sample Maven project definition, replace KOTLIN-EAP-VERSION
with the actual version, such as 2.1.20-Beta1
. Available EAP versions are listed here.
If you run into any problems
Report an issue to our issue tracker, YouTrack.
Find help in the #eap channel in Kotlin Slack (get an invite).
Roll back to the latest stable version: change it in your build script file.