# Gradle 6.6.1 and Kotlin 1.4 - runtime version conflict

**URL:** https://discuss.kotlinlang.org/t/gradle-6-6-1-and-kotlin-1-4-runtime-version-conflict/18987
**Category:** Support
**Created:** [September 1, 2020, 8:57am UTC](https://discuss.kotlinlang.org/t/gradle-6-6-1-and-kotlin-1-4-runtime-version-conflict/18987 "2020-09-01T08:57:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![imanushin](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/imanushin/32/5471_2.png) [@imanushin](https://discuss.kotlinlang.org/u/imanushin)
#### Post date: [September 1, 2020, 8:57am UTC](https://discuss.kotlinlang.org/t/gradle-6-6-1-and-kotlin-1-4-runtime-version-conflict/18987/1 "2020-09-01T08:57:28Z")

</div>

Hello. I asked the [same question on StackOverflow](https://stackoverflow.com/questions/63639389/gradle-6-6-1-and-kotlin-1-4-runtime-version-conflict). Does anybody know, how to sort it out?

I use the latest Gradle (v. 6.6.1) and the latest Kotlin (v. 1.4).

`buildSrc` project defines all Kotlin versions. And unfortunately it receives the error below.

```auto
The `kotlin-dsl` plugin applied to project ':buildSrc' enables experimental Kotlin compiler features. For more information see https://docs.gradle.org/6.6.1/userguide/kotlin_dsl.html#sec:kotlin-dsl_plugin
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    /xxx/.gradle/wrapper/dists/gradle-6.6.1-all/43pddabvuyfjfvs8uyekonb98/gradle-6.6.1/lib/kotlin-stdlib-1.3.72.jar (version 1.3)
    /xxx/.gradle/wrapper/dists/gradle-6.6.1-all/43pddabvuyfjfvs8uyekonb98/gradle-6.6.1/lib/kotlin-stdlib-common-1.3.72.jar (version 1.3)
    /xxx/.gradle/wrapper/dists/gradle-6.6.1-all/43pddabvuyfjfvs8uyekonb98/gradle-6.6.1/lib/kotlin-stdlib-jdk7-1.3.72.jar (version 1.3)
    /xxx/.gradle/wrapper/dists/gradle-6.6.1-all/43pddabvuyfjfvs8uyekonb98/gradle-6.6.1/lib/kotlin-stdlib-jdk8-1.3.72.jar (version 1.3)
    /xxx/.gradle/wrapper/dists/gradle-6.6.1-all/43pddabvuyfjfvs8uyekonb98/gradle-6.6.1/lib/kotlin-reflect-1.3.72.jar (version 1.3)
    /xxx/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.4.0/aa2101a19d8688e368ae6e35e8967550ced73884/kotlin-reflect-1.4.0.jar (version 1.4)
    /xxx/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.3.72/916d54b9eb6442b615e6f1488978f551c0674720/kotlin-stdlib-jdk8-1.3.72.jar (version 1.3)
    /xxx/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.72/3adfc2f4ea4243e01204be8081fe63bde6b12815/kotlin-stdlib-jdk7-1.3.72.jar (version 1.3)
    /xxx/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.4.0/63e75298e93d4ae0b299bb869cf0c627196f8843/kotlin-stdlib-1.4.0.jar (version 1.4)
    /xxx/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.4.0/1c752cce0ead8d504ccc88a4fed6471fd83ab0dd/kotlin-stdlib-common-1.4.0.jar (version 1.4)

```

`buildSrc` project has the following `build.gradle.kts` file:

```kotlin
plugins {
    `kotlin-dsl`
}

dependencies {
    api(kotlin("gradle-plugin:1.4.0"))
}

```

As you can see in the warning above, there are the same libraries in the classpath, however with different versions:

1. With version 1.3 from gradle.
2. With version 1.4 from kotlin plugin.

How can this be fixed?

---

<div class="post-metadata">

### Author: ![Alexey.Belkov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/alexey.belkov/32/5215_2.png) [@Alexey.Belkov](https://discuss.kotlinlang.org/u/Alexey.Belkov)
#### Post date: [September 1, 2020, 1:46pm UTC](https://discuss.kotlinlang.org/t/gradle-6-6-1-and-kotlin-1-4-runtime-version-conflict/18987/2 "2020-09-01T13:46:55Z")

</div>

Please see [https://youtrack.jetbrains.com/issue/KT-41142](https://youtrack.jetbrains.com/issue/KT-41142) for workarounds and follow the issue for updates.

---

<div class="post-metadata">

### Author: ![TWiStErRob](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/twisterrob/32/4111_2.png) [@TWiStErRob](https://discuss.kotlinlang.org/u/TWiStErRob)
#### Post date: [February 7, 2021, 10:58am UTC](https://discuss.kotlinlang.org/t/gradle-6-6-1-and-kotlin-1-4-runtime-version-conflict/18987/4 "2021-02-07T10:58:51Z")

</div>

So based on what I understand there’s no official way to use Kotlin 1.4 in Gradle Plugins. All the workarounds point to downgrading or ignoring the warning, for which there’s no switch. Did I miss something?
