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

Apply binary version conflict check to Compile related configs #2828

Merged
merged 3 commits into from
Nov 12, 2016

Conversation

eed3si9n
Copy link
Member

This is a continuation of #2827

Fixes #1466 Ref #2786

Even after fixing the mediator issue, we still have spurious binary
version conflict warning that does not account for sandbox
configurations.

hello> update
[info] Updating {file:/xxx/}abide...
[warn] Binary version (2.10) for dependency org.scala-lang#scala-library;2.10.4
[warn] 	in com.example#hello_2.11;0.1.0-SNAPSHOT List(dude) differs from Scala binary version in project (2.11).

This change follows the scalaVersionConfigs work.

/review @dwijnand

@eed3si9n eed3si9n added this to the 0.13.14 milestone Nov 11, 2016
Copy link
Member

@dwijnand dwijnand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending Travis.

Fixes sbt#2786. Ref sbt#2634.

sbt 0.13.12 added Ivy mediator that enforces scalaOrganization and
scalaVersion for Scala toolchain artifacts.
This turns out to be a bit too aggressive because Ivy configurations
can be used as an independent dependency graph that does not rely on
the scalaVersion used by Compile configuration. By enforcing
scalaVersion in those graph causes runtime failure.

This change checks if the configuration extends Default, Compile,
Provided, or Optional before enforcing scalaVersion.
Fixes sbt#1466 Ref sbt#2786

Even after fixing the mediator issue, we still have spurious binary
version conflict warning that does not account for sandbox
configurations.

This change follows the scalaVersionConfigs work.
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

Successfully merging this pull request may close these issues.

None yet

2 participants