Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Tut doesn't play nice with scalaVersion #230

Open
wsargent opened this issue Jul 21, 2018 · 3 comments
Open

Tut doesn't play nice with scalaVersion #230

wsargent opened this issue Jul 21, 2018 · 3 comments

Comments

@wsargent
Copy link

wsargent commented Jul 21, 2018

If I have a project which has a default scala version of 2.11 (so IntelliJ will show me the worst case cross compile) and I want to set the slides and documentation to 2.12 (like god intended), then doing the following should work:

scalaVersion in Tut := "2.12.6",

However, this doesn't seem to do anything -- tut still runs in 2.12.6.

@tpolecat
Copy link
Owner

I think sbt treats scalaVersion specially somehow … it's using (runner in Tut) to construct the REPL so one would think it would pick the version up. Which version of sbt are you using?

@tpolecat
Copy link
Owner

While I'm pondering this … a common solution is to create a new sub-project just for doc, and you can set the scalaVersion there. That's what I do for all my cross-compiled projects.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants