question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

^^ sbt-crossbuilding does not set scalaVersion correctly

See original GitHub issue

steps

  1. create an sbt plugin: sbt new sbt/sbt-autoplugin.g8
  2. set sbt.version=0.13.16-M1
  3. try to cross-compile: ^^ 1.0.0-M5 compile

problem

the scripted plugin isn’t resolved for 1.0 because the scalaVersion is incorrect:

[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	::          UNRESOLVED DEPENDENCIES         ::
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	:: org.scala-sbt#scripted-sbt_2.10;1.0.0-M5: not found
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::

expectation

The scalaVersion is set to a version compatible with the sbt version targeted

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
dwijnandcommented, Jun 19, 2017

I’ll give it some thought.

0reactions
eed3si9ncommented, Jul 25, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

sbt Reference Manual — Cross-building
Cross-building. Introduction. Different versions of Scala can be binary incompatible, despite maintaining source compatibility. This page describes how to ...
Read more >
cross-build artifacts being built but not with `releaseCrossBuild
I'm trying to release a version of https://github.com/guardian/marley cross-built for Scala v2.11 & v2.12. All code dependencies are satisfied, ...
Read more >
How to set up Bazel build tool for your Scala project
That's why, in this tutorial, I will be showing you what Bazel build is and how to set your project up in Scala....
Read more >
Manual cross building requires changing scalaVersion and ...
I have a project that I am able to run "+ compile" normally, but doing. `set scalaVersion := "2.8.1"` confuses what I'm building....
Read more >
sbt-release - Scaladex
If no crossScalaVersions are set, then running release or release cross will not trigger a cross release (i.e. run the release with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found