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

managedClasspath(Runtime) contains scala-library from sbt boot path #3942

Open
felixmulder opened this issue Feb 13, 2018 · 0 comments
Open
Labels
uncategorized Used for Waffle integration

Comments

@felixmulder
Copy link

felixmulder commented Feb 13, 2018

Discovered when publishing JARs using custom build code. We're deprecating this in favor of sbt-assembly - but felt we should at least open an issue.

steps

// build.sbt
managedClasspath.in(Runtime)
  .value.files.find(_.getName.contains("scala-library")).foreach(println)

problem

This will print: /home/<user>/.sbt/boot/scala-2.12.4/lib/scala-library.jar. This will be the scala-library even if the scalaVersion is set to something like 2.12.3.

expectation

The ivy or coursier cached JAR should be on the classpath - and that it correctly reflects scalaVersion

notes

sbt version: 1.0.4

Our temporary hack around this was to upgrade the scalaVersion to the one sbt is using.

@eed3si9n eed3si9n added the uncategorized Used for Waffle integration label Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
uncategorized Used for Waffle integration
Projects
None yet
Development

No branches or pull requests

2 participants