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

Infer main class by searching for class with main method. #189

Closed
coollog opened this issue Mar 22, 2018 · 1 comment
Closed

Infer main class by searching for class with main method. #189

coollog opened this issue Mar 22, 2018 · 1 comment
Assignees

Comments

@coollog
Copy link
Contributor

coollog commented Mar 22, 2018

If main class is not configured, jib should search for a class with the public static void main method defined and use that class as the main class. If multiple classes are found, an error should be thrown.

This should be as a last-resort, OR if the provided main class is not a valid main class.

This fixes #170

The goal of this is to provide an even more minimal configuration for a developer, where not even a JAR configuration is needed to find the main class.

@coollog
Copy link
Contributor Author

coollog commented Apr 6, 2018

@TadCordle want to take this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants