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 for Scala 2.13.0-M5 #115

Closed
ennru opened this issue Feb 15, 2019 · 9 comments
Closed

Support for Scala 2.13.0-M5 #115

ennru opened this issue Feb 15, 2019 · 9 comments

Comments

@ennru
Copy link

ennru commented Feb 15, 2019

Play JSON 2.7.1 is available for 2.13.0-M5.

I'm not on top of the other dependencies, yet.

@ennru
Copy link
Author

ennru commented Feb 17, 2019

io.argonaut#argonaut_2.13.0-M5;6.2.2: not found
com.lihaoyi#upickle_2.13.0-M5;0.7.1: not found
org.scalatestplus.play#scalatestplus-play_2.13.0-M5;4.0.0: not found

@pauldijou
Copy link
Collaborator

@ennru Any idea how to configure cross Scala compilation per project?

@2m
Copy link

2m commented Feb 18, 2019

In the latest sbt the +compile will actually switch and run the compile task according to the crossScalaVersions values on the per sub-project basis.

@pauldijou
Copy link
Collaborator

I tried crossScalaVersions := Seq("2.13.0-M5") and then +coreProject/compile just to see how it would go and I got unresolved dependency: org.scalatest#scalatest_2.13.0-M5;3.0.5: not found.

I don't really get it since scalatest is tagged with % "test", so why is it even showing during the compilation step? Shouldn't it be during tests only? (which, to be fair, will be a trouble anyway since I would like to run those tests before publishing but at least it would make sense...)

Anyone has any idea? (mostly for compiling, I wouldn't mind releasing without testing since it's not a final Scala release yet)

@ennru
Copy link
Author

ennru commented Feb 23, 2019

You may use Scalatest 3.0.6-SNAP6 which is published for Scala 2.13.0-M5.

@2m
Copy link

2m commented Feb 24, 2019

The "unresolved dependency" is actually this sbt issue: sbt/sbt#3465

You need to set crossScalaVersions := List() on the aggregate project for a workaround.

Here is a commit that adds 2.13 cross compilation and excludes a couple of projects. The +update runs successfully on that branch.

2m@bc5a956

@pauldijou
Copy link
Collaborator

Should be available in 2.1.0

@ennru
Copy link
Author

ennru commented Feb 24, 2019

Thank you, quicker turn-around than I would have expected for this!

@pauldijou
Copy link
Collaborator

That's because @2m did everything, which was nice 😄

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

No branches or pull requests

3 participants