question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

kotlinx-coroutines-bom seems to break upgrade to Spring Boot 2.7.1

See original GitHub issue

Hi there, I’m not sure if I should open the issue here too but I noticed that after trying to upgrade to Spring boot 2.7.1 I’m getting this error:

[ERROR] Failed to execute goal on project stamps-and-coins-service: 
Could not resolve dependencies for project 
org.jesperancinha.enterprise:stamps-and-coins-service:jar:0.0.1-SNAPSHOT: 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]

I dug into the BOM of spring boot and I found that it is using kotlinx-coroutines-bom 1.6.3 which is using kotlinx-coroutines-debug dependency which wants to download apparently a BOM as a jar file:

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

Have you seen this issue and are you going to release a fix soon?

Thanks!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wilkinsonacommented, Jun 24, 2022

Thanks, @jesperancinha. We import kotlinx-coroutines-bom into our spring-boot-dependencies bom. In 2.7.1 we’ve upgraded from 1.6.1 to 1.6.3 which means that any dependency on the debug library now uses a version with a faulty pom. This didn’t affect Boot’s build as we do not depend, directly or transitively, on kotlinx-coroutines-debug. You can work around the problem by setting kotlin-coroutines.version to 1.6.1.

Given that the problem is limited to users kotlinx-coroutines-debug and that there is a workaround, we’ll leave things as they are in Spring Boot. We’ll pick up 1.6.4 when it’s released which should address the problem at source.

0reactions
jesperancinhacommented, Jun 24, 2022

I think I found out what’s needing that debug library.

        <dependency>
            <groupId>io.kotest</groupId>
            <artifactId>kotest-runner-junit5-jvm</artifactId>
            <scope>test</scope>
        </dependency>

Tough one this one 😃 because then it will only happen to whoever is using Kotest, but apparently this one actually starts in kotlinx coroutines, that’s where the problem seems to begin. I’m waiting for a reaction from them at the moment, but this seems to be an issue with the kotlinx-couroutines libraries.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Boot Reference Documentation
Try the How-to documents. They provide solutions to the most common questions. Learn the Spring basics. Spring Boot builds on many other Spring...
Read more >
App Engine Standard Java 8: 404 Not Found - Issue Tracker
I have a Spring Boot Application running on App Engine Standard with Java 8. ... org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.1 ...
Read more >
ClassNotFoundException: org.springframework.boot.context ...
Hoxton is not compatible with Spring Boot 2.4 use 2020.0.0.
Read more >
Book's Upgrade: Migrating from Spring Boot 2.6 to 2.7
A new upgrade chapter! This one covers the required changes on the book's source code to update it to Spring Boot 2.7.1 and...
Read more >
Spring And Spring Boot Versions - Marco Behler
If you are using Spring in a legacy project, you can always think about upgrading to a newer Spring version if that makes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found