Skip to content

First take at upgrading Zinc #321

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

Merged
merged 4 commits into from
Feb 23, 2019
Merged

First take at upgrading Zinc #321

merged 4 commits into from
Feb 23, 2019

Conversation

slandelle
Copy link
Collaborator

There's most likely lots of cleaning up, but you can have a look.

@slandelle
Copy link
Collaborator Author

slandelle commented Feb 23, 2019

@davidB What's the point of recompileMode? all could be taken care of with mvn clean. And modified-only vs incremental should be the same (taken care of by Zinc's analysis cache, right?).
Should it be dropped?

@davidB
Copy link
Owner

davidB commented Feb 23, 2019

@slandelle Great job,

About recompileMode, IMO

  • modify-only could be dropped, it was a quick and dirty way to do incremental compile on plugin side (before zinc, sbt analysis,...), and the change to 4.x.x allow breaking change
  • all should be keep, it's a way to say "I would not like to use incremental"
    • clean imply to drop every thing not only generated main or test classes (some project generate (re)sources, do possibly heavy stuff that could be keep)
    • in continious compilation mode, I would like to recompile "all" with scalac

@slandelle
Copy link
Collaborator Author

@davidB Any idea why Travis fails? Same command works fine on my side.

So all would just bypass/ignore/not generate AnalysisStore, right?

@slandelle
Copy link
Collaborator Author

BTW, I upgraded to JDK8 to keep things simple (zinc dependency). IMHO, that's anyway the right thing to do in 2019 in a new major version.
Fine with you?

@davidB
Copy link
Owner

davidB commented Feb 23, 2019

all ignore analysis and pass every sources file (in alphabetical order) to scalac.
(the sort is mandatory due to an old bug in scalac)

@davidB
Copy link
Owner

davidB commented Feb 23, 2019

Yes for 4.x.x, I'm fine to drop support for < jdk1.8
Maybe I'll also remove some test for old version of scala.

I'll take a look to the travis error.

@slandelle
Copy link
Collaborator Author

Are you fine with making incremental the default ?

@davidB
Copy link
Owner

davidB commented Feb 23, 2019

yes incremental could be the default

@davidB
Copy link
Owner

davidB commented Feb 23, 2019

I found how to reproduce the travis issue locally:

./mvnw invoker:run -Dinvoker.test=test_goal_doc

I'll search for a fix, until that you can disable the test (add it to the list of test to exclude in pom.xml). I guess you can also remove the dependencies to bcel you add into top pom.xml

@davidB
Copy link
Owner

davidB commented Feb 23, 2019

To simplify collaboration (and to thanks you), I'll add you as collaborator on the project, and merge the PR to master. So we can work on the 4.x.x.

@davidB davidB merged commit c26cf3a into davidB:master Feb 23, 2019
@slandelle
Copy link
Collaborator Author

I guess you can also remove the dependencies to bcel you add into top pom.xml

I forced bcel upgrade because maven site was crashing when parsing scala libraries' bytecode.

I'll search for a fix, until that you can disable the test

Under way, thanks

I'll add you as collaborator on the project, and merge the PR to master

Thanks!

@davidB
Copy link
Owner

davidB commented Feb 23, 2019

Build passed:

  • I removed the forced bcel upgrade on root pom.xml (bcel seems to be a dependency of the maven-project-info-reports-plugin not of maven-site-plugin)
  • upgrade the test_goal_doc to use new version of the plugins (maven-project-info-reports-plugin and maven-site-plugin) => bcel version up from 5.2 to 6.2

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.

2 participants