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

POM of kotlinx-coroutines-debug is invalid as of version 1.6.2 #3334

Closed
GreyTeardrop opened this issue Jun 20, 2022 · 8 comments
Closed

POM of kotlinx-coroutines-debug is invalid as of version 1.6.2 #3334

GreyTeardrop opened this issue Jun 20, 2022 · 8 comments
Assignees
Labels

Comments

@GreyTeardrop
Copy link

As of version 1.6.2, the POM of kotlinx-coroutines-debug is invalid and breaks a (Maven) build for us, as it includes a dependency on kotlinx-coroutines-bom with scope runtime, so Maven tries to get a jar for kotlinx-coroutines-bom which obviously doesn't exist.

Version 1.6.3 of kotlinx-coroutines-debug is also affected.

kotlinx-coroutines-debug-1.6.1.pom
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.jetbrains.kotlinx</groupId>
  <artifactId>kotlinx-coroutines-debug</artifactId>
  <version>1.6.1</version>
  <name>kotlinx-coroutines-debug</name>
  <description>Coroutines support libraries for Kotlin</description>
  <url>https://github.com/Kotlin/kotlinx.coroutines</url>
  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>JetBrains</id>
      <name>JetBrains Team</name>
      <organization>JetBrains</organization>
      <organizationUrl>https://www.jetbrains.com</organizationUrl>
    </developer>
  </developers>
  <scm>
    <url>https://github.com/Kotlin/kotlinx.coroutines</url>
  </scm>
  <dependencies>
    <dependency>
      <groupId>net.java.dev.jna</groupId>
      <artifactId>jna</artifactId>
      <version>5.9.0</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>net.java.dev.jna</groupId>
      <artifactId>jna-platform</artifactId>
      <version>5.9.0</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.jetbrains.kotlin</groupId>
      <artifactId>kotlin-stdlib-jdk8</artifactId>
      <version>1.6.0</version>
      <scope>runtime</scope>
    </dependency>
  </dependencies>
</project>
kotlinx-coroutines-debug-1.6.2.pom
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.jetbrains.kotlinx</groupId>
  <artifactId>kotlinx-coroutines-debug</artifactId>
  <version>1.6.2</version>
  <name>kotlinx-coroutines-debug</name>
  <description>Coroutines support libraries for Kotlin</description>
  <url>https://github.com/Kotlin/kotlinx.coroutines</url>
  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>JetBrains</id>
      <name>JetBrains Team</name>
      <organization>JetBrains</organization>
      <organizationUrl>https://www.jetbrains.com</organizationUrl>
    </developer>
  </developers>
  <scm>
    <url>https://github.com/Kotlin/kotlinx.coroutines</url>
  </scm>
  <dependencies>
    <dependency>
      <groupId>org.jetbrains.kotlinx</groupId>
      <artifactId>kotlinx-coroutines-core</artifactId>
      <version>1.6.2</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.jetbrains.kotlinx</groupId>
      <artifactId>kotlinx-coroutines-bom</artifactId>
      <version>1.6.2</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>net.java.dev.jna</groupId>
      <artifactId>jna</artifactId>
      <version>5.9.0</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>net.java.dev.jna</groupId>
      <artifactId>jna-platform</artifactId>
      <version>5.9.0</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.jetbrains.kotlin</groupId>
      <artifactId>kotlin-stdlib-jdk8</artifactId>
      <version>1.6.21</version>
      <scope>runtime</scope>
    </dependency>
  </dependencies>
</project>
@qwwdfsad
Copy link
Member

qwwdfsad commented Jun 22, 2022

I see that #3281 is the root cause, we'll definitely fix that, thanks!

The trick her is to prevent such situations in the future

@jesperancinha
Copy link

In the meantime, I'm adding this to all my projects where I found this problem as a workaround:

<dependency>
    <groupId>org.jetbrains.kotlinx</groupId>
    <artifactId>kotlinx-coroutines-debug</artifactId>
    <version>${kotlinx-coroutines-debug.version}</version>
    <exclusions>
        <exclusion>
            <groupId>org.jetbrains.kotlinx</groupId>
            <artifactId>kotlinx-coroutines-bom</artifactId>
        </exclusion>
    </exclusions>
</dependency>

Do you have any idea of when the new release will be out?

jesperancinha added a commit to jesperancinha/markdowner that referenced this issue Jun 30, 2022
jesperancinha added a commit to jesperancinha/jeorg-spring-test-drives that referenced this issue Jun 30, 2022
jesperancinha added a commit to jesperancinha/jeorg-spring-master-test-drives that referenced this issue Jun 30, 2022
jesperancinha added a commit to jesperancinha/staco-app that referenced this issue Jun 30, 2022
jesperancinha added a commit to jesperancinha/jeorg-spring-test-drives that referenced this issue Jun 30, 2022
jesperancinha added a commit to jesperancinha/advanced-library-management that referenced this issue Jun 30, 2022
@qwwdfsad
Copy link
Member

Next week hopefully

@mikaello
Copy link

mikaello commented Sep 8, 2022

We are still experiencing this problem with Ktor 2.1.1, Could not find artifact org.jetbrains.kotlinx:kotlinx-coroutines-bom:jar:1.6.3. Could it be because some dependencies of Ktor still use 1.6.3 of coroutines? You have defined coroutines 1.6.3 in gradle/libs.versions.toml:

https://github.com/ktorio/ktor/blob/d300441cb70b6a590ebe263febc36f3fe825b4f6/gradle/libs.versions.toml#L4

While in gradle.properties you have used 1.6.4:

https://github.com/ktorio/ktor/blob/d300441cb70b6a590ebe263febc36f3fe825b4f6/gradle.properties#L34

@dkhalanskyjb
Copy link
Collaborator

Does adding an explicit dependency for coroutines 1.6.4 help? Also, CC @e5l.

@mikaello
Copy link

mikaello commented Sep 8, 2022

Adding

    <dependency>
      <groupId>org.jetbrains.kotlinx</groupId>
      <artifactId>kotlinx-coroutines-bom</artifactId>
      <version>1.6.4</version>
      <type>pom</type>
    </dependency>

... did not help. If no one else is getting this error, it may be something broken in our setup, it just seemed like a possible cause of the error that 1.6.3 was still mentioned as the version of coroutines in gradle/libs.versions.toml.

pablobaxter pushed a commit to pablobaxter/kotlinx.coroutines that referenced this issue Sep 14, 2022
@hermanjakobsen
Copy link

hermanjakobsen commented Oct 6, 2022

For our projects, using

<dependency>
  <groupId>io.ktor</groupId>
  <artifactId>ktor-server-tests-jvm</artifactId>
  <version>2.0.3</version>
  <scope>test</scope>
</dependency>

with version 2.0.3 or higher results in could not find artifact org.jetbrains.kotlinx:kotlinx-coroutines-bom:jar:1.6.3. The dependency works fine with version 2.0.2.

Other ktor dependencies works fine with versions higher than 2.0.2 (e.g. ktor-server-core-jvm and ktor-server-content-negotiation-jvm).

@hermanjakobsen
Copy link

jesperancinha added a commit to jesperancinha/news-cast-explorer that referenced this issue Dec 2, 2022
jesperancinha added a commit to jesperancinha/news-cast-explorer that referenced this issue Dec 2, 2022
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

6 participants