# Configure your build for EAP Latest Kotlin EAP release: 2.5.0-RC [Explore Kotlin EAP release details](eap.html#build-details) 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](eap.html#build-details). * 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](#configure-in-gradle) * [Configure in Maven](#configure-in-maven) ## Configure in Gradle This section describes how you can: * [Adjust the Kotlin version](#adjust-the-kotlin-version) * [Adjust versions in dependencies](#adjust-versions-in-dependencies) ### 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.5.0-RC`. [Available EAP versions are listed here](eap.html#build-details). 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. Here is an example for the Multiplatform project. Kotlin: ```KOTLIN plugins { java kotlin("multiplatform") version "KOTLIN-EAP-VERSION" } repositories { mavenCentral() } ``` Groovy: ```GROOVY plugins { id 'java' id 'org.jetbrains.kotlin.multiplatform' version 'KOTLIN-EAP-VERSION' } repositories { mavenCentral() } ``` ### 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](eap.html#build-details). Note: In most cases we create libraries only for the first EAP version of a specific release and these libraries work with the subsequent EAP versions for this release. If there are incompatible changes in next EAP versions, we release a new version of the library. Here is an example. For the kotlinx.coroutines library, add the version number – `1.11.0` – that is compatible with `2.5.0-RC`. Kotlin: ```KOTLIN dependencies { implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.11.0") } ``` Groovy: ```GROOVY dependencies { implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.11.0" } ``` ## Configure in Maven In the sample Maven project definition, replace `KOTLIN-EAP-VERSION` with the actual version, such as `2.5.0-RC`. [Available EAP versions are listed here](eap.html#build-details). ```XML KOTLIN-EAP-VERSION mavenCentral https://repo1.maven.org/maven2/ mavenCentral https://repo1.maven.org/maven2/ org.jetbrains.kotlin kotlin-stdlib ${kotlin.version} org.jetbrains.kotlin kotlin-maven-plugin ${kotlin.version} ... ``` ## If you run into any problems * Report an issue to [our issue tracker, YouTrack](https://kotl.in/issue). * Find help in the [#eap channel in Kotlin Slack](https://app.slack.com/client/T09229ZC6/C0KLZSCHF) ([get an invite](https://surveys.jetbrains.com/s3/kotlin-slack-sign-up)). * Roll back to the latest stable version: [change it in your build script file](#adjust-the-kotlin-version).