Skip to content

Override Scala version for sbt 1.4.x #98

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

Merged
merged 2 commits into from
Jul 11, 2021
Merged

Conversation

eed3si9n
Copy link
Member

@eed3si9n eed3si9n commented Jul 10, 2021

Fixes sbt/sbt#6587

Problem

During sbt 1.4.x series util-interface incorrectly depended on
scala-library. Specifically for util-interface 1.4.0, 1.4.1, and 1.4.2,
this was Scala 2.13. Ivy seemed to be ok with this, but Coursier evicts
Scala 2.12 and resolves to 2.13, which creating a confusing
java.lang.NoClassDefFoundError: scala/Serializable error.

Solution

Explicitly override Scala version for sbt 1.4.x to Scala 2.12.12.

Problem
-------
During sbt 1.4.x series util-interface incorrectly depended on
scala-library. Specifically for util-interface 1.4.0, 1.4.1, and 1.4.2,
this was Scala 2.13. Ivy seemed to be ok with this, but Coursier evicts
Scala 2.12 and resolves to 2.13, which creating a confusing
`java.lang.NoClassDefFoundError: scala/Serializable` error.

Solution
--------
Explicitly override Scala version for sbt 1.4.x to Scala 2.12.12.
@eed3si9n eed3si9n changed the title Reproduce sbt/sbt 6587 Override Scala version for sbt 1.4.x Jul 11, 2021
@eed3si9n eed3si9n merged commit d4285b8 into sbt:1.x Jul 11, 2021
@eed3si9n eed3si9n deleted the wip/sbt-6587 branch July 11, 2021 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sbt fails with java.lang.NoClassDefFoundError: scala/Serializable
1 participant