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

Automatically detect main methods #1669

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

Automatically detect main methods #1669

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 section.

If we compiled with Zinc, we could make the main_class attribute on scala_binary optional. From the proposal:

Zinc’s analysis file contains a list of "main classes"—classes and objects identified as candidates for a main class (i.e. the class containing the main method). In our non-bootstrapped compilation worker, we access that list and write it to a file. If a main class hasn’t been manually set, we read the previously mentioned file, select one, and use that.

Doing something similar in bazelbuild/rules_scala could make scala_binary targets easier to declare.

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