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

kotlinx-coroutines-debug version 1.6.3 breaks build with Spring Boot Upgrade to 2.7.1 #3345

Closed
jesperancinha opened this issue Jun 24, 2022 · 4 comments
Labels

Comments

@jesperancinha
Copy link

Hi there!

Yesterday I noticed that on several of my repos the build was breaking and dependabot could not automate any of the Spring Boot updates. After an exhaustive investigation I came accross for kotlinx-coroutines-debug which is included in spring boot 2.7.1, there is jar dependency configured for the build of materials and that of course generates:

[ERROR] Failed to execute goal on project stamps-and-coins-service: Could not resolve dependencies for project <> org.jetbrains.kotlinx:kotlinx-coroutines-bom:jar:1.6.3 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

This is what I see when looking into the kotlinx-coroutines-debug dependency:

 <dependencies>
    <dependency>
      <groupId>org.jetbrains.kotlinx</groupId>
      <artifactId>kotlinx-coroutines-core</artifactId>
      <version>1.6.3</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.jetbrains.kotlinx</groupId>
      <artifactId>kotlinx-coroutines-bom</artifactId>
      <version>1.6.3</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>

So I'm guessing the problem is here:

    <dependency>
      <groupId>org.jetbrains.kotlinx</groupId>
      <artifactId>kotlinx-coroutines-bom</artifactId>
      <version>1.6.3</version>
      <scope>runtime</scope>
    </dependency>

Are you planning on making a release soon about this?

Thanks!

@dkhalanskyjb
Copy link
Collaborator

Duplicate of #3334

@dkhalanskyjb dkhalanskyjb marked this as a duplicate of #3334 Jun 24, 2022
@jesperancinha
Copy link
Author

@dkhalanskyjb , It is a duplicated but the issue was reported in 1.6.2. Will this be fixed in 1.6.4?

@dkhalanskyjb
Copy link
Collaborator

It was only reported after we released 1.6.3. Also, sure, we'll fix this.

@MrTomato
Copy link

MrTomato commented Jul 5, 2022

It works if you exclude the bom dependency and then add it manually to the pom :)

        <dependency>
            <groupId>io.kotest</groupId>
            <artifactId>kotest-runner-junit5-jvm</artifactId>
            <version>5.3.2</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.jetbrains.kotlinx</groupId>
                    <artifactId>kotlinx-coroutines-bom</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlinx</groupId>
            <artifactId>kotlinx-coroutines-bom</artifactId>
            <version>1.6.3</version>
            <type>pom</type>
            <scope>test</scope>
        </dependency>

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

4 participants