folks, so I'm having some trouble understanding exactly how tut does stuff. I'm working on this PR — fairly common use of tut, I assume:
And for some reason
docs/compile task fails with:
Why is it looking for jars when there's an explicit sbt project dependency defined?
after setting crossScalaVersions to Nil https://github.com/ChristopherDavenport/cormorant/pull/137/commits/2cc0129cc88c9373d8b4acff88e78c803f2c201a
It seems that
+docs/compile works after a clean, while
docs/compile still doesn't :joy: even though it technically uses one single version. The beauties of sbt incantations :smile:
ok, found the ultimate problem.
docs module to compile only in scala
2.12.x since it depended on github4s which isn't available yet for 2.13.
All other projects had the "main" scala version set to
2.13.x. So when I change the default version to
docs/compile could properly resolve its dependencies to scala
+docs/compile worked because it forced scala 2.12 on everybody.
Hopefully this little escapade helps other people out in the same situation.
TL;DR would be: if you have a module that should be compiled with an older version of scala compared to the rest of your project, make sure that the default scala version of all other sbt modules are that version. And cross compilation should bring in newer versions.
dependsOn(core)or whatever so it inherits all the depencencies.
tutTargetDirectory := file("docs")
enablePlugins(TutPlugin)on the top level of the
build.sbtfile - maybe it is something related to that?
lazy val root = (project in file(".")) .enablePlugins(TutPlugin)
Still same problem.
Tut/libraryDependenciestell you different things at the sbt prompt?
Compile/consolebut it doesn't. Just
project blahin sbt and then do
consoleanything that's visible there will also be visible if you do
tutin that project.
consolefrom the root project but it doesn’t have access to the other module’s stuff
project blahfor each markdown i copy over.
[warn] insecure HTTP request is deprecated 'http://dl.bintray.com/tpolecat/maven'; switch to HTTPS or opt-in as ("tpolecat" at "http://dl.bintray.com/tpolecat/maven").withAllowInsecureProtocol(true)