# Failure in Intellij and Jenkins since migration to kotlin 1.2.60

**URL:** <https://discuss.kotlinlang.org/t/failure-in-intellij-and-jenkins-since-migration-to-kotlin-1-2-60/9049>\
**Category:** Support\
**Created:** [August 14, 2018, 10:42am UTC](https://discuss.kotlinlang.org/t/failure-in-intellij-and-jenkins-since-migration-to-kotlin-1-2-60/9049 "2018-08-14T10:42:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tsvetkov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/tsvetkov/32/6181_2.png) [@tsvetkov](https://discuss.kotlinlang.org/u/tsvetkov)\
**Post date:** [August 15, 2018, 12:16pm UTC](https://discuss.kotlinlang.org/t/failure-in-intellij-and-jenkins-since-migration-to-kotlin-1-2-60/9049/2 "2018-08-15T12:16:10Z")

</div>

@nickheitz

See [How to set useFallbackCompilerSearch? - #3 by tsvetkov](https://discuss.kotlinlang.org/t/how-to-set-usefallbackcompilersearch/9039/3)

In short, the dependency should resolve through `mavenCentral`, but only trough project repository, not buildscript one.

Won’t work:

```auto
buildscript {
     repositories {
         mavenCentral()
     }
     dependencies {
          classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.60'
     }
}

apply plugin: 'kotlin'

```

Should work:

```auto
buildscript {
     repositories {
         mavenCentral()
     }
     dependencies {
          classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.60'
     }
}

apply plugin: 'kotlin'

repositories {
    // this repo should be available in every subproject that uses kotlin
    mavenCentral() // or jcentrer
}

```

---

_[View the full topic](https://discuss.kotlinlang.org/t/failure-in-intellij-and-jenkins-since-migration-to-kotlin-1-2-60/9049)._
