Skip to content
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

ktor-server-core v1.2.6 has something wrong with its dependency #1455

Closed
Animeshz opened this issue Nov 22, 2019 · 2 comments
Closed

ktor-server-core v1.2.6 has something wrong with its dependency #1455

Animeshz opened this issue Nov 22, 2019 · 2 comments
Assignees
Labels

Comments

@Animeshz
Copy link

Ktor Version and Engine Used (client or server and name)
1.2.6, server, ktor-server-core

Describe the bug

Today, upon build following error occured, for more info check the screenshot below
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileKotlin'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.2-1.3.60.
     Searched in the following locations:
       - https://jcenter.bintray.com/org/jetbrains/kotlinx/kotlinx-coroutines-core-common/1.3.2-1.3.60/kotlinx-coroutines-core-common-1.3.2-1.3.60.pom
       - https://jcenter.bintray.com/org/jetbrains/kotlinx/kotlinx-coroutines-core-common/1.3.2-1.3.60/kotlinx-coroutines-core-common-1.3.2-1.3.60.jar
       - https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core-common/1.3.2-1.3.60/kotlinx-coroutines-core-common-1.3.2-1.3.60.pom
       - https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core-common/1.3.2-1.3.60/kotlinx-coroutines-core-common-1.3.2-1.3.60.jar
       - https://jitpack.io/org/jetbrains/kotlinx/kotlinx-coroutines-core-common/1.3.2-1.3.60/kotlinx-coroutines-core-common-1.3.2-1.3.60.pom
       - https://jitpack.io/org/jetbrains/kotlinx/kotlinx-coroutines-core-common/1.3.2-1.3.60/kotlinx-coroutines-core-common-1.3.2-1.3.60.jar
     Required by:
         project : > io.ktor:ktor-server-core:1.2.6 > org.jetbrains.kotlinx:kotlinx-coroutines-io-jvm:0.1.16
         project : > io.ktor:ktor-server-core:1.2.6 > io.ktor:ktor-utils-jvm:1.2.6
         project : > io.ktor:ktor-server-core:1.2.6 > io.ktor:ktor-http-jvm:1.2.6
         project : > io.ktor:ktor-websockets:1.2.6 > io.ktor:ktor-http-cio-jvm:1.2.6
         project : > io.ktor:ktor-server-core:1.2.6 > org.jetbrains.kotlinx:kotlinx-coroutines-io-jvm:0.1.16 > org.jetbrains.kotlinx:kotlinx-coroutines-io:0.1.16

I want to highlight the line: Could not find org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.2-1.3.60., that's the main reason of cause of build failed, and that was caused by dependency of org.jetbrains.kotlinx:kotlinx-coroutines-io-jvm:0.1.16 which is defined in io.ktor:ktor-server-core:1.2.6 as shown in screenshot below

To Reproduce
Steps to reproduce the behavior:

  1. Write the following
    implementation "io.ktor:ktor-server-core:1.2.6"
  2. Import using gradle
  3. See error

Expected behavior
Expected to resolve the dependency.

Screenshots
Screenshot (126)

@Animeshz Animeshz added the bug label Nov 22, 2019
@Animeshz Animeshz changed the title Dependency ktor-server-core v1.2.6 in dependency has ktor-server-core v1.2.6 has something wrong with its dependency Nov 22, 2019
@damianogiusti
Copy link

Similar issue here. The gradle build fails also on a Kotlin Multi Platform project (Android and iOS), where I use Ktor as HTTP client.

I updated the Android Studio Kotlin plugin to 1.3.60, then updated the project's Kotlin version to the same value. Updated Ktor to version 1.2.6 and Kotlinx serialization to 0.14.0.

The issue seems to be caused by the wrong version number that has been specified for the coroutines library in the Ktor gradle.properties file. It's set to 1.3.2-1.6.0 by this commit 01f940e.

I believe that by setting it just to 1.3.2 it will make the whole thing compile again.
Also, there are some CI jobs that fail on the 1.2.6 tag.

@cy6erGn0m
Copy link
Contributor

This should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants