New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle 4.10-rc1 can't resolve dependency kotlin-scripting-compiler-embeddable #1033

Closed
tagantroy opened this Issue Aug 13, 2018 · 8 comments

Comments

Projects
None yet
7 participants
@tagantroy
Copy link

tagantroy commented Aug 13, 2018

After upgrade to Gradle 4.10-rc1 i faced with this problem while gradle sync:

Execution failed for task ':buildSrc:compileKotlin'.
> Could not resolve all files for configuration ':buildSrc:kotlinCompilerPluginClasspath'.
   > Could not find org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.2.60.
     Searched in the following locations: file:/Users/ivan.balaksha/.gradle/caches/4.10-rc-1/embedded-kotlin-repo-1.2.60-2/repo/org/jetbrains/kotlin/kotlin-scripting-compiler-embeddable/1.2.60/kotlin-scripting-compiler-embeddable-1.2.60.jar
     Required by:
         project :buildSrc
   > Could not find org.jetbrains.kotlin:kotlin-sam-with-receiver:1.2.60.
     Required by:
         project :buildSrc

Link to demo project: Malinskiy/marathon#84

@eskatos

This comment has been minimized.

Copy link
Member

eskatos commented Aug 13, 2018

With Kotlin 1.2.60, the Kotlin Gradle Plugin driving the kotlin compiler requires extra dependencies that aren't required by Gradle Kotlin DSL scripts alone and aren't embedded into Gradle.

This can be fixed by adding a repository that contains Kotlin compiler dependencies:

repositories {
    jcenter()
}

In your case it should go into ./buildSrc/build.gradle.kts

@tagantroy

This comment has been minimized.

Copy link
Author

tagantroy commented Aug 13, 2018

@eskatos thank you. Solved.

@tagantroy tagantroy closed this Aug 13, 2018

@AlexCzar

This comment has been minimized.

Copy link

AlexCzar commented Sep 25, 2018

I think this should be added to release notes. I've just wasted half an hour on troubleshooting and then found this issue.

@Asad-Khan-Aasanjobs

This comment has been minimized.

Copy link

Asad-Khan-Aasanjobs commented Sep 28, 2018

Thanks, @eskatos
I seem to have missed this part when reading about upgrading to Gradle 4.10

@wuchengithub

This comment has been minimized.

Copy link

wuchengithub commented Oct 10, 2018

With Kotlin 1.2.60, the Kotlin Gradle Plugin driving the kotlin compiler requires extra dependencies that aren't required by Gradle Kotlin DSL scripts alone and aren't embedded into Gradle.

This can be fixed by adding a repository that contains Kotlin compiler dependencies:

repositories {
    jcenter()
}

In your case it should go into ./buildSrc/build.gradle.kts

big big big help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

@ellykits

This comment has been minimized.

Copy link

ellykits commented Nov 3, 2018

cool thanks a lot!

@jcornaz

This comment has been minimized.

Copy link

jcornaz commented Dec 10, 2018

Thank you very much @eskatos. Please write it down in the documentation.

@eskatos

This comment has been minimized.

Copy link
Member

eskatos commented Dec 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment