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 · 5 comments

Comments

Projects
None yet
5 participants
@tagantroy

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.

Show comment
Hide comment
@eskatos

eskatos Aug 13, 2018

Member

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

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.

Show comment
Hide comment
@tagantroy

tagantroy Aug 13, 2018

@eskatos thank you. Solved.

tagantroy commented Aug 13, 2018

@eskatos thank you. Solved.

@tagantroy tagantroy closed this Aug 13, 2018

@AlexCzar

This comment has been minimized.

Show comment
Hide comment
@AlexCzar

AlexCzar 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.

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.

Show comment
Hide comment
@Asad-Khan-Aasanjobs

Asad-Khan-Aasanjobs Sep 28, 2018

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

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.

Show comment
Hide comment
@wuchengithub

wuchengithub 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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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