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

Compile Scala code with Zinc #1665

Open
jadenPete opened this issue Dec 9, 2024 · 0 comments
Open

Compile Scala code with Zinc #1665

jadenPete opened this issue Dec 9, 2024 · 0 comments

Comments

@jadenPete
Copy link

This issue is part of a broader proposal to merge some of the features in lucidsoftware/rules_scala into this ruleset.

The tracking issue for this effort

The relevant proposal sections:

Note that we're not interested in pursuing incremental compilation; rather, we're interested in everything else Zinc has to offer.

A few of the benefits we would get by invoking the compiler via Zinc:

  • We can invoke the compiler programmtically via the compiler interface
    • This would prevent us from having to spin up a separate JVM for each compiler invocation
    • This would allow us to invoke the Scala 2 and Scala 3 compiler via the same API
  • Zinc outputs an analysis file that includes information about classes, methods, which dependencies were used, etc.
    • This could be used for dependency checking, test discovery, main method detection, etc.

See the proposal for more information.

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

No branches or pull requests

1 participant