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

Support Scala 3 dependency resolution in sbt manager #29087

Closed
rarkins opened this issue May 15, 2024 Discussed in #29082 · 1 comment · Fixed by #29291
Closed

Support Scala 3 dependency resolution in sbt manager #29087

rarkins opened this issue May 15, 2024 Discussed in #29082 · 1 comment · Fixed by #29291
Labels
manager:sbt SBT package manager priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others type:feature Feature (new functionality)

Comments

@rarkins
Copy link
Collaborator

rarkins commented May 15, 2024

Discussed in #29082

Starting with scala 3, dependencies are published with major version.
Here is an example:

https://mvnrepository.com/artifact/io.circe/circe-core_2.13/0.15.0-M1
https://mvnrepository.com/artifact/io.circe/circe-core_3/0.15.0-M1

As you may see, for scala 3 there is only a major version. However if we have scalaVersion defined in build.sbt:

ThisBuild / scalaVersion := "3.4.1"

Renovate attempts to resolve dependency with _3.4 prefix, can not find it via sbt manager and fallbacks to maven (which does not work in all cases, e.g. when library pushed without maven support).

@rarkins rarkins added type:feature Feature (new functionality) priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others manager:sbt SBT package manager labels May 15, 2024
george-wilson-rea added a commit to george-wilson-rea/renovate that referenced this issue May 27, 2024
Scala 3 packages are suffixed by only the major version, `_3` rather than
being suffixed by the major and minor version eg. `_2.13`

closes renovatebot#29087
george-wilson-rea added a commit to george-wilson-rea/renovate that referenced this issue May 28, 2024
Scala 3 packages are suffixed by only the major version, `_3` rather than
being suffixed by the major and minor version eg. `_2.13`

closes renovatebot#29087
@renovate-release
Copy link
Collaborator

🎉 This issue has been resolved in version 37.380.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
manager:sbt SBT package manager priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others type:feature Feature (new functionality)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants