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

Make xsbt.CompilerInterface class name configurable #872

Merged
merged 1 commit into from
Aug 13, 2020

Conversation

eed3si9n
Copy link
Member

Fixes #831

This is a future proofing step for the compiler bridge. As suggested by Guillaume this introduces an indirection using java.util.ServiceLoader so the class name of the compiler interface implementation can be configured.

@eed3si9n eed3si9n force-pushed the wip/service branch 2 times, most recently from 3e4f119 to be41938 Compare August 10, 2020 05:12
Fixes sbt#831

This is a future proofing step for the compiler bridge. As suggested by Guillaume this introduces an indirection using `java.util.ServiceLoader` so the class name of the compiler interface implementation can be configured.

This also a smoke test to invoke these entry points using the brige.
@dwijnand
Copy link
Member

Looks like something went wrong as the diff now has a bunch of other unrelated changes.

@eed3si9n
Copy link
Member Author

Looks like something went wrong as the diff now has a bunch of other unrelated changes.

You mean the tests that I added?

@eed3si9n
Copy link
Member Author

xsbti.InteractiveConsoleFactory is also behind the service, which I missed earlier.

@eed3si9n eed3si9n merged commit 951c722 into sbt:develop Aug 13, 2020
@eed3si9n eed3si9n deleted the wip/service branch August 13, 2020 05:51
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.

Make xsbt.CompilerInterface class name configurable
2 participants