IntelliJ IDEA - could not find org.jetbrains.kotlin:kotlin-gradle-plugins
Asked Answered
U

1

6

Trying to open a Corda demo in IntelliJ IDEA and getting this error when it tries to import gradle settings

Error:Could not find org.jetbrains.kotlin:kotlin-gradle-plugins:1.1.4. Searched in the following locations: file:/C:/Users/Default/.m2/repository/org/jetbrains/kotlin/kotlin-gradle-plugins/1.1.4/kotlin-gradle-plugins-1.1.4.pom file:/C:/Users/Default/.m2/repository/org/jetbrains/kotlin/kotlin-gradle-plugins/1.1.4/kotlin-gradle-plugins-1.1.4.jar https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugins/1.1.4/kotlin-gradle-plugins-1.1.4.pom https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugins/1.1.4/kotlin-gradle-plugins-1.1.4.jar https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugins/1.1.4/kotlin-gradle-plugins-1.1.4.pom https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugins/1.1.4/kotlin-gradle-plugins-1.1.4.jar Required by: project :

I can't find any documentation to suggest how to fix this, Any ideas?

Unreadable answered 16/11, 2017 at 12:48 Comment(0)
P
8

There seems to be a typo in the build script: the correct name of the artifact is kotlin-gradle-plugin (without s).

Check the dependency declaration in your build.gradle:

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:..."

It's described in the docs here: Using Gradle

Purchasable answered 16/11, 2017 at 12:52 Comment(3)
Eyyyy, this guy!Unreadable
What does the documentation say is the correct name for the artifact? plugin or plugins? (What I mean to say, is, bonus points for, and please do, add link.)Affair
It's kotlin-gradle-plugin, see (link), updated the answer as well.Purchasable

© 2022 - 2024 — McMap. All rights reserved.