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

Upgrade to sbt 1 #3687

Closed
wants to merge 53 commits into from
Closed

Upgrade to sbt 1 #3687

wants to merge 53 commits into from

Conversation

allanrenucci
Copy link
Contributor

Rebased #3441. Reviews still need to be addressed

smarter and others added 30 commits November 13, 2017 07:49
First draft at fixing the sbt bridge to match the Zinc 1.0 API.
After sbt/zinc#101, SimpleType simply doesn't exist anymore.
Some of sbt's callbacks need the full name of the class that can only be
accessed during the first step of the GenBCode pipeline.
So we call the callbacks in the first step, generating at the same time
the class files, and keep those files through the whole pipeline so the
last step can write the bytecode in them.
A FileConflictException may occure when creating a class file.
Add check for this error and refactor a bit of code around it.
That test depended on NameHashing being disabled, which is no longer
supported with Zinc 1.0
It isn't passing in sbt/sbt either. See sbt/sbt#3691
It has been changed in sbt/zinc.
Reverted while implementing class-based NameHashing. See:
 - sbt/zinc@189a2a5
 - sbt/zinc#86
Their goal was to offer a simpler alternative to sbt's `F0`. Since `F0`
got replaced by `Supplier`, they are no longer required.
For many tests, we need the `scala-library` jar on the classpath, and we
used to search through the classpath for a JAR whose name contained
`scala-library-2.`. This works great if the `scala-library` on the
classpath comes from Ivy. However, if we use the same version of Scala
as sbt, the `scala-library` will not be taken ouf of the Ivy cache but
from sbt's boot directory. In this case, the JAR will simply be named
`scala-library.jar`.
Copy link
Member

@dottybot dottybot left a comment

Choose a reason for hiding this comment

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

Hello, and thank you for opening this PR! 🎉

All contributors have signed the CLA, thank you! ❤️

Have an awesome day! ☀️

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

5 participants